X-Git-Url: https://git.distorted.org.uk/~mdw/secnet/blobdiff_plain/22c77971bb13c37344fc73fe9b8d72ed96181df2..c72aa74324481a2ee642b1739baec10eb616cbca:/process.c diff --git a/process.c b/process.c index a15e3a6..77fe38e 100644 --- a/process.c +++ b/process.c @@ -218,6 +218,10 @@ void afterfork(void) sigset_t done; struct sigaction sa; + clear_phase_hooks(PHASE_SHUTDOWN); + /* Prevents calls to fatal() etc. in the child from running off + and doing a lot of unhelpful things */ + sigemptyset(&done); for (n=sigs; n; n=n->next) if (!sigismember(&done,n->signum)) {