process: signals on exit cases
authorAlan Cox <alan@linux.intel.com>
Sun, 30 Oct 2016 10:48:09 +0000 (10:48 +0000)
committerAlan Cox <alan@linux.intel.com>
Sun, 30 Oct 2016 10:48:09 +0000 (10:48 +0000)
Also catch the pending signal when we exit for another reason and then
block.

Kernel/process.c

index 34799dd..77d2c53 100644 (file)
@@ -642,6 +642,7 @@ void doexit(uint16_t val)
           delivered). If we don't do this we might take a signal
           while exiting which would be ... unfortunate */
        udata.u_ptab->p_held = 0xFFFFFFFFUL;
+       udata.u_cursig = 0;
 
        /* Discard our memory before we blow away and reuse the memory */
        pagemap_free(udata.u_ptab);