mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
Destroy panes immediately rather than checking them all every loop.
This commit is contained in:
6
server.c
6
server.c
@ -335,7 +335,6 @@ server_accept_callback(int fd, short events, unused void *data)
|
||||
return;
|
||||
}
|
||||
server_client_create(newfd);
|
||||
|
||||
}
|
||||
|
||||
/* Set up server signal handling. */
|
||||
@ -449,9 +448,8 @@ server_child_exited(pid_t pid, int status)
|
||||
continue;
|
||||
TAILQ_FOREACH(wp, &w->panes, entry) {
|
||||
if (wp->pid == pid) {
|
||||
close(wp->fd);
|
||||
bufferevent_free(wp->event);
|
||||
wp->fd = -1;
|
||||
server_destroy_pane(wp);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user