commit | a6d52405a8eea89d803a95843687c49f9115ca65 | [log] [download] |
---|---|---|
author | Nicholas Marriott <nicm@openbsd.org> | Sat Apr 17 23:25:16 2010 +0000 |
committer | Nicholas Marriott <nicm@openbsd.org> | Sat Apr 17 23:25:16 2010 +0000 |
tree | 35f2d687f5d06640a5c975de11488d91cc400428 | |
parent | 842bc2b855114984c6c182b83523d7268b8b2b0b [diff] |
If remain-on-exit is set, both the error callback and a SIGCHLD could destroy the same pane (because the first one doesn't remove it from the list of panes), causing the pane bufferevent to be freed twice. So don't free it if the fd has already been set to -1, from Romain Francoise.