summaryrefslogtreecommitdiff
path: root/usr.bin/tmux
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2020-08-04 08:50:02 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2020-08-04 08:50:02 +0000
commit8c5576158f04ff4e479af2a949b042339a0f0c63 (patch)
tree6c36b001e23bb8d7b49fdfe5ef7321fb227c7736 /usr.bin/tmux
parent5bf156a6406cf9daee3af4f38c6c110680df70ab (diff)
Also ignore SIGQUIT so it can't be used to kill the client when locked.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r--usr.bin/tmux/proc.c3
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);