From: Alan Cox Date: Mon, 18 May 2015 22:11:50 +0000 (+0100) Subject: process: don't wake zombies, it ends badly even if you have a shotgun X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=ce967116568b4a38006fee730d9b18dfdd162259;p=FUZIX.git process: don't wake zombies, it ends badly even if you have a shotgun --- diff --git a/Kernel/process.c b/Kernel/process.c index 0388f1cc..c7b866fd 100644 --- a/Kernel/process.c +++ b/Kernel/process.c @@ -77,7 +77,7 @@ void wakeup(void *event) void pwake(ptptr p) { - if (p->p_status > P_RUNNING) { + if (p->p_status > P_RUNNING && p->p_status < P_FORKING) { p->p_status = P_READY; p->p_wait = NULL; nready++;