diff options
Diffstat (limited to 'bin/sh/trap.c')
-rw-r--r-- | bin/sh/trap.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/bin/sh/trap.c b/bin/sh/trap.c index 1b9ab63f47cb..d7a98604c22c 100644 --- a/bin/sh/trap.c +++ b/bin/sh/trap.c @@ -474,14 +474,20 @@ dotrap(void) } +void +trap_init(void) +{ + setsignal(SIGINT); + setsignal(SIGQUIT); +} + + /* * Controls whether the shell is interactive or not based on iflag. */ void setinteractive(void) { - setsignal(SIGINT); - setsignal(SIGQUIT); setsignal(SIGTERM); } |