diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2012-01-29 02:22:11 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2012-01-29 02:22:11 +0000 |
commit | 9bbc63ed653e6ca73e4eaebd6f52466d53a4da73 (patch) | |
tree | 22cfe4ad5f8797aa880320ce52b51868b36e59a6 /window.c | |
parent | a7a44bfcd9f1eeec2b82b6490b35893dcb7c053f (diff) | |
download | rtmux-9bbc63ed653e6ca73e4eaebd6f52466d53a4da73.tar.gz rtmux-9bbc63ed653e6ca73e4eaebd6f52466d53a4da73.tar.bz2 rtmux-9bbc63ed653e6ca73e4eaebd6f52466d53a4da73.zip |
Call bufferevent_free before closing file descriptor associated with it
or bugs in $EventMechanism on $OtherOS makes libevent get it's knickers
in a twist. From Dylan Alex Simon.
Diffstat (limited to 'window.c')
-rw-r--r-- | window.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -611,8 +611,8 @@ window_pane_destroy(struct window_pane *wp) window_pane_reset_mode(wp); if (wp->fd != -1) { - close(wp->fd); bufferevent_free(wp->event); + close(wp->fd); } input_free(wp); @@ -622,8 +622,8 @@ window_pane_destroy(struct window_pane *wp) grid_destroy(wp->saved_grid); if (wp->pipe_fd != -1) { - close(wp->pipe_fd); bufferevent_free(wp->pipe_event); + close(wp->pipe_fd); } RB_REMOVE(window_pane_tree, &all_window_panes, wp); @@ -647,8 +647,8 @@ window_pane_spawn(struct window_pane *wp, const char *cmd, const char *shell, struct termios tio2; if (wp->fd != -1) { - close(wp->fd); bufferevent_free(wp->event); + close(wp->fd); } if (cmd != NULL) { if (wp->cmd != NULL) |