signals: fix other return in chksigs
authorAlan Cox <alan@linux.intel.com>
Sun, 28 Aug 2016 22:50:54 +0000 (23:50 +0100)
committerAlan Cox <alan@linux.intel.com>
Sun, 28 Aug 2016 22:50:54 +0000 (23:50 +0100)
Kernel/process.c

index a5c0053..8c30c2b 100644 (file)
@@ -461,7 +461,7 @@ uint8_t chksigs(void)
           isn't quite right but will paper over the holes for the moment
           FIXME */
        if (udata.u_cursig || !pending || udata.u_ptab->p_status == P_STOPPED)
-               return;
+               return udata.u_cursig;
 
        /* Dispatch the lowest numbered signal */
        for (j = 1; j < NSIGS; ++j) {