aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorBruce Korb <bkorb@gnu.org>2001-03-08 23:26:14 +0000
committerBruce Korb <korbb@gcc.gnu.org>2001-03-08 23:26:14 +0000
commit0bf679a3645d2ac3c43cb8ac0cfcdfba05112397 (patch)
treec8b39b658b605181563849cd1a1051a16d0c1cf7 /gcc/gcc.c
parentf6646274a0f925adc0113cfeb1d4999d0805476d (diff)
downloadgcc-0bf679a3645d2ac3c43cb8ac0cfcdfba05112397.zip
gcc-0bf679a3645d2ac3c43cb8ac0cfcdfba05112397.tar.gz
gcc-0bf679a3645d2ac3c43cb8ac0cfcdfba05112397.tar.bz2
fix SIGCHLD handling
From-SVN: r40330
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index ddf3f61..8477c00 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -5517,6 +5517,9 @@ main (argc, argv)
if (signal (SIGPIPE, SIG_IGN) != SIG_IGN)
signal (SIGPIPE, fatal_error);
#endif
+ /* We *MUST* set SIGCHLD to SIG_DFL so that the wait4() call will
+ receive the signal. A different setting is inheritable */
+ signal (SIGCHLD, SIG_DFL);
argbuf_length = 10;
argbuf = (const char **) xmalloc (argbuf_length * sizeof (const char *));