Exit on SIGHUP before attach also, GitHub issue 3084.

This commit is contained in:
nicm 2022-02-28 09:34:57 +00:00 committed by Nicholas Marriott
parent 9947f7416a
commit 42e7959336

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) {