process: correct SIGCHLD check
authorAlan Cox <alan@linux.intel.com>
Sat, 2 Jun 2018 21:58:08 +0000 (22:58 +0100)
committerAlan Cox <alan@linux.intel.com>
Sat, 2 Jun 2018 21:58:08 +0000 (22:58 +0100)
Kernel/process.c

index 29ae033..3fba3d0 100644 (file)
@@ -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;