From 34488c83ffb71312a8ac0c63e97cb1b8a98ff9e1 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sun, 30 Oct 2016 10:48:09 +0000 Subject: [PATCH] process: signals on exit cases Also catch the pending signal when we exit for another reason and then block. --- Kernel/process.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.34.1