summaryrefslogtreecommitdiffstats
path: root/bin/sh/trap.c
diff options
context:
space:
mode:
authorschweikh <schweikh@FreeBSD.org>2006-04-17 17:55:11 +0000
committerschweikh <schweikh@FreeBSD.org>2006-04-17 17:55:11 +0000
commitb4b950d049176bd4834f960bca79c4a2bdfd88c4 (patch)
tree4a71945fff56ca8e0d5fb848464fecee8f6f75af /bin/sh/trap.c
parent459f95e73cc5959a2238c1b871059c0c481069a9 (diff)
downloadFreeBSD-src-b4b950d049176bd4834f960bca79c4a2bdfd88c4.zip
FreeBSD-src-b4b950d049176bd4834f960bca79c4a2bdfd88c4.tar.gz
Whitespace nits.
Diffstat (limited to 'bin/sh/trap.c')
-rw-r--r--bin/sh/trap.c8
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;
OpenPOWER on IntegriCloud