From 67a87ad0104d88e8b1711a3831d616598edb30c2 Mon Sep 17 00:00:00 2001 From: Toby Goodwin Date: Sat, 17 Feb 2018 16:03:30 +0000 Subject: remove all references to SIGCLD --- signal.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'signal.c') diff --git a/signal.c b/signal.c index 68dcc27..aa74922 100644 --- a/signal.c +++ b/signal.c @@ -83,14 +83,12 @@ extern void initsignal() { void (*h)(int); int i; -#if HAVE_SYSV_SIGCLD - /* Ensure that SIGCLD is not SIG_IGN. Solaris's rshd does this. :-( */ - h = sys_signal(SIGCLD, SIG_IGN); + /* Ensure that SIGCHLD is not SIG_IGN. Solaris's rshd does this. :-( */ + h = sys_signal(SIGCHLD, SIG_IGN); if (h != SIG_IGN && h != SIG_ERR) - sys_signal(SIGCLD, h); + sys_signal(SIGCHLD, h); else - sys_signal(SIGCLD, SIG_DFL); -#endif + sys_signal(SIGCHLD, SIG_DFL); for (i = 1; i < NUMOFSIGNALS; i++) { #ifdef SIGKILL -- cgit v1.2.3