summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortjg <tjg>1999-05-10 15:19:23 +0000
committerToby Goodwin <toby@paccrat.org>2015-05-16 21:23:15 +0100
commitb2d0248df8071a57508500448afd93f04e318fb3 (patch)
tree2247105c705f0565a59cef9ed7f262cea44a9c1b
parent67e60012a3076479bb7de91b78a2c972ae0b6901 (diff)
Bug: if we reset SIGCLG to SIG_DFL, we need to record the fact in the
sighandlers[] array.
-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
}