mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
Clear signal flags /before/ taking action and continue afterwards to reduce
chance of dropping signals. Pointed out by deraadt@.
This commit is contained in:
6
server.c
6
server.c
@ -328,15 +328,17 @@ server_main(int srv_fd)
|
||||
|
||||
/* Handle child exit. */
|
||||
if (sigchld) {
|
||||
server_child_signal();
|
||||
sigchld = 0;
|
||||
server_child_signal();
|
||||
continue;
|
||||
}
|
||||
|
||||
/* Recreate socket on SIGUSR1. */
|
||||
if (sigusr1) {
|
||||
sigusr1 = 0;
|
||||
close(srv_fd);
|
||||
srv_fd = server_create_socket();
|
||||
sigusr1 = 0;
|
||||
continue;
|
||||
}
|
||||
|
||||
/* Initialise pollfd array and add server socket. */
|
||||
|
Reference in New Issue
Block a user