mirror of
https://github.com/tmux/tmux.git
synced 2024-11-17 18:08:51 +00:00
Exit on SIGHUP before attach also, GitHub issue 3084.
This commit is contained in:
parent
2e59ff2db9
commit
2da096d828
2
client.c
2
client.c
@ -530,7 +530,7 @@ client_signal(int sig)
|
|||||||
if (sig == SIGCHLD)
|
if (sig == SIGCHLD)
|
||||||
waitpid(WAIT_ANY, &status, WNOHANG);
|
waitpid(WAIT_ANY, &status, WNOHANG);
|
||||||
else if (!client_attached) {
|
else if (!client_attached) {
|
||||||
if (sig == SIGTERM)
|
if (sig == SIGTERM || sig == SIGHUP)
|
||||||
proc_exit(client_proc);
|
proc_exit(client_proc);
|
||||||
} else {
|
} else {
|
||||||
switch (sig) {
|
switch (sig) {
|
||||||
|
Loading…
Reference in New Issue
Block a user