aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2009-11-13 16:52:46 +0000
committerTiago Cunha <tcunha@gmx.com>2009-11-13 16:52:46 +0000
commite8424d333e1f0c1d2c2cf7c738b8cd12e3096db8 (patch)
tree431be44c46d31928c047a30848be3316fa24f805
parent1b4a76d58fc513b53ec86c8226621c012de62e5f (diff)
downloadrtmux-e8424d333e1f0c1d2c2cf7c738b8cd12e3096db8.tar.gz
rtmux-e8424d333e1f0c1d2c2cf7c738b8cd12e3096db8.tar.bz2
rtmux-e8424d333e1f0c1d2c2cf7c738b8cd12e3096db8.zip
Sync OpenBSD patchset 528:
Free the pane bufferevent when the fd is closed (the signal could come before the error callback).
-rw-r--r--server.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/server.c b/server.c
index 0637a2a3..6f272b24 100644
--- a/server.c
+++ b/server.c
@@ -1,4 +1,4 @@
-/* $Id: server.c,v 1.227 2009-11-13 16:51:49 tcunha Exp $ */
+/* $Id: server.c,v 1.228 2009-11-13 16:52:46 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -468,6 +468,7 @@ server_child_exited(pid_t pid, int status)
TAILQ_FOREACH(wp, &w->panes, entry) {
if (wp->pid == pid) {
close(wp->fd);
+ bufferevent_free(wp->event);
wp->fd = -1;
}
}