fix SIGCHLD handling

From-SVN: r40330
This commit is contained in:
Bruce Korb 2001-03-08 23:26:14 +00:00 committed by Bruce Korb
parent f6646274a0
commit 0bf679a364
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2001-03-08 Bruce Korb <bkorb@gnu.org>
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 <ro@TechFak.Uni-Bielefeld.DE>
* fixinc/inclhack.def (AAB_dgux_int_varargs): Don't use HTML

View File

@ -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 *));