Exit on SIGHUP before attach also, GitHub issue 3084.

This commit is contained in:
nicm 2022-02-28 09:34:57 +00:00
parent 2e59ff2db9
commit 2da096d828

View File

@ -530,7 +530,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) {