mirror of
https://github.com/tmux/tmux.git
synced 2025-01-26 07:58:55 +00:00
Sync OpenBSD patchset 528:
Free the pane bufferevent when the fd is closed (the signal could come before the error callback).
This commit is contained in:
parent
1b4a76d58f
commit
e8424d333e
3
server.c
3
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>
|
* 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) {
|
TAILQ_FOREACH(wp, &w->panes, entry) {
|
||||||
if (wp->pid == pid) {
|
if (wp->pid == pid) {
|
||||||
close(wp->fd);
|
close(wp->fd);
|
||||||
|
bufferevent_free(wp->event);
|
||||||
wp->fd = -1;
|
wp->fd = -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user