mirror of
https://github.com/tmux/tmux.git
synced 2025-01-12 19:39:04 +00:00
Ignore SIGHUP as well.
This commit is contained in:
parent
6abd984608
commit
65c9004550
4
server.c
4
server.c
@ -356,6 +356,8 @@ server_signal_set(void)
|
||||
fatal("sigaction failed");
|
||||
if (sigaction(SIGTSTP, &sigact, NULL) != 0)
|
||||
fatal("sigaction failed");
|
||||
if (sigaction(SIGHUP, &sigact, NULL) != 0)
|
||||
fatal("sigaction failed");
|
||||
|
||||
signal_set(&server_ev_sigchld, SIGCHLD, server_signal_callback, NULL);
|
||||
signal_add(&server_ev_sigchld, NULL);
|
||||
@ -383,6 +385,8 @@ server_signal_clear(void)
|
||||
fatal("sigaction failed");
|
||||
if (sigaction(SIGTSTP, &sigact, NULL) != 0)
|
||||
fatal("sigaction failed");
|
||||
if (sigaction(SIGHUP, &sigact, NULL) != 0)
|
||||
fatal("sigaction failed");
|
||||
|
||||
signal_del(&server_ev_sigchld);
|
||||
signal_del(&server_ev_sigterm);
|
||||
|
Loading…
Reference in New Issue
Block a user