commit 97e2ecf8267f5c91cc0d6b8b832a0aa16f1e7226 parent 60af71b51c86873430bcff673a3ecd7a45d18a6c Author: tim <tim> Date: Tue, 1 Jul 1997 20:02:07 +0000 make sure SIGCLD is not SIG_IGN Diffstat:
M | signal.c | | | 7 | +++++++ |
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/signal.c b/signal.c @@ -70,4 +70,11 @@ extern void initsignal() { signal(i, h); sighandlers[i] = h; } + +#ifdef SIGCLD + /* Ensure that SIGCLD is not SIG_IGN. Solaris's rshd does this. :-( */ + h = signal(SIGCLD, SIG_DFL); + if (h != SIG_IGN) + signal(SIGCLD, h); +#endif }