From 97e2ecf8267f5c91cc0d6b8b832a0aa16f1e7226 Mon Sep 17 00:00:00 2001 From: tim Date: Tue, 1 Jul 1997 20:02:07 +0000 Subject: make sure SIGCLD is not SIG_IGN --- signal.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'signal.c') diff --git a/signal.c b/signal.c index 11b9a66..1c3f812 100644 --- 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 } -- cgit v1.2.3