mirror of
https://github.com/tmux/tmux.git
synced 2024-12-04 19:58:48 +00:00
Exit on SIGHUP before attach also, GitHub issue 3084.
This commit is contained in:
parent
9947f7416a
commit
42e7959336
2
client.c
2
client.c
@ -531,7 +531,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