From: Bruce Korb Date: Thu, 8 Mar 2001 23:26:14 +0000 (+0000) Subject: fix SIGCHLD handling X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0bf679a3645d2ac3c43cb8ac0cfcdfba05112397;p=gcc.git fix SIGCHLD handling From-SVN: r40330 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b468fcc972b..07d84063a5c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-03-08 Bruce Korb + + gcc.c(main): ensure SIGCHLD handling is set to SIG_DFL so that + wiat4() can receive the signal. + Thu Mar 8 21:09:10 2001 Rainer Orth * fixinc/inclhack.def (AAB_dgux_int_varargs): Don't use HTML diff --git a/gcc/gcc.c b/gcc/gcc.c index ddf3f61e9a0..8477c003066 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 *));