From b2d0248df8071a57508500448afd93f04e318fb3 Mon Sep 17 00:00:00 2001 From: tjg Date: Mon, 10 May 1999 15:19:23 +0000 Subject: Bug: if we reset SIGCLG to SIG_DFL, we need to record the fact in the sighandlers[] array. --- signal.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'signal.c') 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 } -- cgit v1.2.3