From 42e795933625dbda27e3c0a453fc7d0fbf4bb758 Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 28 Feb 2022 09:34:57 +0000 Subject: [PATCH] Exit on SIGHUP before attach also, GitHub issue 3084. --- client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.c b/client.c index 8ca08524..08708c21 100644 --- a/client.c +++ b/client.c @@ -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) {