commit | a85292e73c0bb9fca46e123c92c6f6550c57924d | [log] [tgz] |
---|---|---|
author | Dima Ryazanov <dima@gmail.com> | Thu Nov 29 00:27:09 2012 -0800 |
committer | Kristian Høgsberg <krh@bitplanet.net> | Fri Nov 30 14:11:41 2012 -0500 |
tree | 486e1a7a55f9f090a5764e631fc23a0979178d2b | |
parent | cd1d6c8f1994b0d055eba168a891f4e26837ae40 [diff] |
Fix a crash when opening two terminal windows and closing the first one. 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 watching an FD.