Re: [PATCH weston] Fix a crash when opening two terminal windows and closing the first one.

2012-11-30 Thread Kristian Høgsberg
On Thu, Nov 29, 2012 at 12:27:09AM -0800, Dima Ryazanov wrote: > To reproduce, launch the terminal, open a second window using Ctrl-Shift-N, > go back to the first window, and press Ctrl-D. The terminal's master FD gets > events even after being closed, causing terminal_destroy to be called twice >

[PATCH weston] Fix a crash when opening two terminal windows and closing the first one.

2012-11-29 Thread Dima Ryazanov
To reproduce, launch the terminal, open a second window using Ctrl-Shift-N, go back to the first window, and press Ctrl-D. The terminal's master FD gets events even after being closed, causing terminal_destroy to be called twice on the same object. To fix this, I'm adding a function to stop watchi