From 22a1d4f170709b48ddc851cdfc0597c8a7eaafb8 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. --- usr.bin/tmux/client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.20.1