From b8a62d09d7fe6f8ab90b142439126d24504c06d6 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sat, 2 Jun 2018 22:58:08 +0100 Subject: [PATCH] process: correct SIGCHLD check --- Kernel/process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.34.1