diff options
author | 2020-08-04 08:50:01 +0000 | |
---|---|---|
committer | 2020-08-04 08:50:01 +0000 | |
commit | eb5d7a0766d6f1e1babb442d9090a5534f668ef2 (patch) | |
tree | 31182baab151e58813564489c1aafefc7b78ea62 /usr.bin/tmux/proc.c | |
parent | Only parse a client's status_request in the CH (diff) | |
download | wireguard-openbsd-eb5d7a0766d6f1e1babb442d9090a5534f668ef2.tar.xz wireguard-openbsd-eb5d7a0766d6f1e1babb442d9090a5534f668ef2.zip |
Also ignore SIGQUIT so it can't be used to kill the client when locked.
Diffstat (limited to 'usr.bin/tmux/proc.c')
-rw-r--r-- | usr.bin/tmux/proc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/proc.c b/usr.bin/tmux/proc.c index 1a85abe457e..4790d5e87e7 100644 --- a/usr.bin/tmux/proc.c +++ b/usr.bin/tmux/proc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: proc.c,v 1.17 2020/05/16 16:07:55 nicm Exp $ */ +/* $OpenBSD: proc.c,v 1.18 2020/08/04 08:50:01 nicm Exp $ */ /* * Copyright (c) 2015 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -226,6 +226,7 @@ proc_set_signals(struct tmuxproc *tp, void (*signalcb)(int)) sigaction(SIGTSTP, &sa, NULL); sigaction(SIGTTIN, &sa, NULL); sigaction(SIGTTOU, &sa, NULL); + sigaction(SIGQUIT, &sa, NULL); signal_set(&tp->ev_sigint, SIGINT, proc_signal_cb, tp); signal_add(&tp->ev_sigint, NULL); |