X-Git-Url: https://git.distorted.org.uk/~mdw/secnet/blobdiff_plain/ba703386fd742f46f83430a7c48a9bfe53167eae..23ca153790f68d03191eaa9ac306597da596b4ed:/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)) {