Also ignore SIGQUIT so it can't be used to kill the client when locked.

This commit is contained in:
nicm 2020-08-04 08:50:01 +00:00
parent 944177eec3
commit 82c65e3f37

1
proc.c
View File

@ -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);