From: Alan Cox Date: Sat, 2 Jun 2018 21:58:08 +0000 (+0100) Subject: process: correct SIGCHLD check X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=b8a62d09d7fe6f8ab90b142439126d24504c06d6;p=FUZIX.git process: correct SIGCHLD check --- diff --git a/Kernel/process.c b/Kernel/process.c index 29ae0335..3fba3d0f 100644 --- a/Kernel/process.c +++ b/Kernel/process.c @@ -778,7 +778,7 @@ void acctexit(ptptr p) static int signal_parent(ptptr c) { ptptr p = c->p_pptr; - if (p->p_sig[1].s_ignored & (1UL << SIGCHLD)) { + if (p->p_sig[1].s_ignored & (1UL << (SIGCHLD - 16))) { /* POSIX.1 says that SIG_IGN for SIGCHLD means don't go zombie, just clean up as we go */ udata.u_ptab->p_status = P_EMPTY;