diff options
author | Bruce Korb <bkorb@gnu.org> | 2001-03-08 23:26:14 +0000 |
---|---|---|
committer | Bruce Korb <korbb@gcc.gnu.org> | 2001-03-08 23:26:14 +0000 |
commit | 0bf679a3645d2ac3c43cb8ac0cfcdfba05112397 (patch) | |
tree | c8b39b658b605181563849cd1a1051a16d0c1cf7 /gcc/gcc.c | |
parent | f6646274a0f925adc0113cfeb1d4999d0805476d (diff) | |
download | gcc-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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 *)); |