summaryrefslogtreecommitdiff
path: root/signal.c
diff options
context:
space:
mode:
authorToby Goodwin <toby@paccrat.org>2018-03-01 21:37:18 +0000
committerToby Goodwin <toby@paccrat.org>2018-03-01 21:37:18 +0000
commit5b624196125034b95d504be682127a5964e08da5 (patch)
tree56d3477069e7541dcb67f36fc3b960f6f9abe076 /signal.c
parent5966ab2ca2632c5bed9815def1add4859beececa (diff)
parent67a87ad0104d88e8b1711a3831d616598edb30c2 (diff)
Merge branch 'master' into ifnot
Diffstat (limited to 'signal.c')
-rw-r--r--signal.c10
1 files changed, 4 insertions, 6 deletions
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