summaryrefslogtreecommitdiff
path: root/signal.c
diff options
context:
space:
mode:
Diffstat (limited to 'signal.c')
-rw-r--r--signal.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/signal.c b/signal.c
index 1c59746..8535eab 100644
--- a/signal.c
+++ b/signal.c
@@ -97,5 +97,7 @@ extern void initsignal() {
h = sys_signal(SIGCLD, SIG_DFL);
if (h != SIG_IGN && h != SIG_ERR)
sys_signal(SIGCLD, h);
+ else
+ sighandlers[SIGCLD] = SIG_DFL;
#endif
}