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 /server-fn.c | |
parent | a7a44bfcd9f1eeec2b82b6490b35893dcb7c053f (diff) |
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 'server-fn.c')
-rw-r--r-- | server-fn.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server-fn.c b/server-fn.c index c8f85cd0..b9b7b714 100644 --- a/server-fn.c +++ b/server-fn.c @@ -337,8 +337,8 @@ server_destroy_pane(struct window_pane *wp) old_fd = wp->fd; if (wp->fd != -1) { - close(wp->fd); bufferevent_free(wp->event); + close(wp->fd); wp->fd = -1; } |