aboutsummaryrefslogtreecommitdiff
path: root/client.c
diff options
context:
space:
mode:
authornicm <nicm>2022-02-28 09:34:57 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2022-04-06 14:19:50 +0100
commit42e795933625dbda27e3c0a453fc7d0fbf4bb758 (patch)
tree2964f3e37dda0c2ef12519877da9511ff544e2d9 /client.c
parent9947f7416a3e43c30abcfbc5092c7e3e7b122dcb (diff)
downloadrtmux-42e795933625dbda27e3c0a453fc7d0fbf4bb758.tar.gz
rtmux-42e795933625dbda27e3c0a453fc7d0fbf4bb758.tar.bz2
rtmux-42e795933625dbda27e3c0a453fc7d0fbf4bb758.zip
Exit on SIGHUP before attach also, GitHub issue 3084.
Diffstat (limited to 'client.c')
-rw-r--r--client.c2
1 files changed, 1 insertions, 1 deletions
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) {