Exit on SIGHUP before attach also, GitHub issue 3084.

pull/3160/head
nicm 2022-02-28 09:34:57 +00:00 committed by Nicholas Marriott
parent 9947f7416a
commit 42e7959336
1 changed files with 1 additions and 1 deletions

View File

@ -531,7 +531,7 @@ client_signal(int sig)
if (sig == SIGCHLD)
waitpid(WAIT_ANY, &status, WNOHANG);
else if (!client_attached) {
if (sig == SIGTERM)
if (sig == SIGTERM || sig == SIGHUP)
proc_exit(client_proc);
} else {
switch (sig) {