diff options
Diffstat (limited to 'bin/sh/trap.c')
-rw-r--r-- | bin/sh/trap.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/sh/trap.c b/bin/sh/trap.c index 71a14ba..16ef0aa 100644 --- a/bin/sh/trap.c +++ b/bin/sh/trap.c @@ -75,7 +75,7 @@ MKINIT char sigmode[NSIG]; /* current value of signal */ int pendingsigs; /* indicates some signal received */ int in_dotrap; /* do we execute in a trap handler? */ static char *volatile trap[NSIG]; /* trap handler commands */ -static volatile sig_atomic_t gotsig[NSIG]; +static volatile sig_atomic_t gotsig[NSIG]; /* indicates specified signal received */ static int ignore_sigchld; /* Used while handling SIGCHLD traps. */ volatile sig_atomic_t gotwinch; @@ -375,12 +375,12 @@ onsig(int signo) /* If we are currently in a wait builtin, prepare to break it */ if ((signo == SIGINT || signo == SIGQUIT) && in_waitcmd != 0) breakwaitcmd = 1; - /* - * If a trap is set, not ignored and not the null command, we need + /* + * If a trap is set, not ignored and not the null command, we need * to make sure traps are executed even when a child blocks signals. */ if (Tflag && - trap[signo] != NULL && + trap[signo] != NULL && ! (trap[signo][0] == '\0') && ! (trap[signo][0] == ':' && trap[signo][1] == '\0')) breakwaitcmd = 1; |