From 269e91fd5f9e3eba0ce6df133fc17636c680516f Mon Sep 17 00:00:00 2001 From: Jameson Nash Date: Sat, 22 Jun 2024 13:11:26 -0400 Subject: [PATCH] forward all commonly user-generated signals Notably, adding SIGQUIT, but also the TTY signals (in case we ended up as a tty owner), and sorting the list by signal number --- deps/userns_common.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/deps/userns_common.c b/deps/userns_common.c index e420329..c7797e7 100644 --- a/deps/userns_common.c +++ b/deps/userns_common.c @@ -125,12 +125,17 @@ void signal_passthrough(int sig) { // The list of signals that we will forward to our child process int forwarded_signals[] = { SIGHUP, - SIGPIPE, - SIGSTOP, SIGINT, - SIGTERM, + SIGQUIT, SIGUSR1, SIGUSR2, + SIGTERM, + SIGCONT, + SIGSTOP, + SIGTSTP, + SIGTTIN, + SIGTTOU, + SIGWINCH }; void setup_signal_forwarding() {