From: Alan Cox Date: Fri, 13 Feb 2015 14:54:35 +0000 (+0000) Subject: process: correct behaviour of kill to process 1 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=c762e20eb5a9681a9c100496290e5c4b73e629a4;p=FUZIX.git process: correct behaviour of kill to process 1 In unixdom this has a magic exception that only handled signals are delivered to process 1, those that would kill it are ignored. --- diff --git a/Kernel/process.c b/Kernel/process.c index 2e9fc1b1..d7d322a1 100644 --- a/Kernel/process.c +++ b/Kernel/process.c @@ -453,7 +453,7 @@ void chksigs(void) /* SIGCONT is subtle - we woke the process to handle the signal so ignoring here works fine */ if (j == SIGCHLD || j == SIGURG || - j == SIGIO || j == SIGCONT) { + j == SIGIO || j == SIGCONT || udata.u_ptab->p_pid == 1) { udata.u_ptab->p_pending &= ~m; // unset the bit continue; }