Commit 0bf679a3 by Bruce Korb Committed by Bruce Korb

fix SIGCHLD handling

From-SVN: r40330
parent f6646274
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> 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 * fixinc/inclhack.def (AAB_dgux_int_varargs): Don't use HTML
......
...@@ -5517,6 +5517,9 @@ main (argc, argv) ...@@ -5517,6 +5517,9 @@ main (argc, argv)
if (signal (SIGPIPE, SIG_IGN) != SIG_IGN) if (signal (SIGPIPE, SIG_IGN) != SIG_IGN)
signal (SIGPIPE, fatal_error); signal (SIGPIPE, fatal_error);
#endif #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_length = 10;
argbuf = (const char **) xmalloc (argbuf_length * sizeof (const char *)); argbuf = (const char **) xmalloc (argbuf_length * sizeof (const char *));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment