From: Alan Cox Date: Sun, 30 Oct 2016 10:48:09 +0000 (+0000) Subject: process: signals on exit cases X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=34488c83ffb71312a8ac0c63e97cb1b8a98ff9e1;p=FUZIX.git process: signals on exit cases Also catch the pending signal when we exit for another reason and then block. --- diff --git a/Kernel/process.c b/Kernel/process.c index 34799ddc..77d2c535 100644 --- a/Kernel/process.c +++ b/Kernel/process.c @@ -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);