fix SIGCHLD handling
From-SVN: r40330
This commit is contained in:
parent
f6646274a0
commit
0bf679a364
@ -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
|
||||
|
@ -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 *));
|
||||
|
Loading…
Reference in New Issue
Block a user