From: nicm Date: Mon, 28 Feb 2022 09:34:57 +0000 (+0000) Subject: Exit on SIGHUP before attach also, GitHub issue 3084. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=22a1d4f170709b48ddc851cdfc0597c8a7eaafb8;p=openbsd Exit on SIGHUP before attach also, GitHub issue 3084. --- diff --git a/usr.bin/tmux/client.c b/usr.bin/tmux/client.c index fb9562912c7..31218d6a825 100644 --- a/usr.bin/tmux/client.c +++ b/usr.bin/tmux/client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: client.c,v 1.156 2021/08/27 17:25:55 nicm Exp $ */ +/* $OpenBSD: client.c,v 1.157 2022/02/28 09:34:57 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -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) {