summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/system.c
diff options
context:
space:
mode:
authorJames Raynard <jraynard@FreeBSD.org>1996-06-08 15:28:11 +0000
committerJames Raynard <jraynard@FreeBSD.org>1996-06-08 15:28:11 +0000
commit1638d6b6d5326b37d996ce49fb54ddfc3bc16ad0 (patch)
tree23d0a98ce8efca3338fae7476201ffaaabdb5946 /lib/libc/stdlib/system.c
parentd4aa23722843d20ec5537fa1ac14e4e8f1345fe1 (diff)
Notes
Diffstat (limited to 'lib/libc/stdlib/system.c')
-rw-r--r--lib/libc/stdlib/system.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/stdlib/system.c b/lib/libc/stdlib/system.c
index 3bae36ae4c62..00db7d6ce968 100644
--- a/lib/libc/stdlib/system.c
+++ b/lib/libc/stdlib/system.c
@@ -65,7 +65,8 @@ int system(command)
(void)sigaction(SIGINT, &ign, &intact);
(void)sigaction(SIGQUIT, &ign, &quitact);
(void)sigemptyset(&newsigblock);
- sigprocmask(SIG_BLOCK, &newsigblock, &oldsigblock);
+ (void)sigaddset(&newsigblock, SIGCHLD);
+ (void)sigprocmask(SIG_BLOCK, &newsigblock, &oldsigblock);
switch(pid = fork()) {
case -1: /* error */
break;