process: don't wake zombies, it ends badly even if you have a shotgun
authorAlan Cox <alan@linux.intel.com>
Mon, 18 May 2015 22:11:50 +0000 (23:11 +0100)
committerAlan Cox <alan@linux.intel.com>
Mon, 18 May 2015 22:11:50 +0000 (23:11 +0100)
Kernel/process.c

index 0388f1c..c7b866f 100644 (file)
@@ -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++;