mirror of https://github.com/tmux/tmux.git
Exit on SIGHUP before attach also, GitHub issue 3084.
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