Skip to content

Commit

Permalink
forward all commonly user-generated signals
Browse files Browse the repository at this point in the history
Notably, adding SIGQUIT, but also the TTY signals (in case we ended up as a tty owner), and sorting the list by signal number
  • Loading branch information
vtjnash authored and staticfloat committed Jun 23, 2024
1 parent 1493b14 commit 269e91f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions deps/userns_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 269e91f

Please sign in to comment.