]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] fixes to zap_other_threads fix
authorRoland McGrath <roland@redhat.com>
Thu, 7 Aug 2003 06:06:12 +0000 (23:06 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Thu, 7 Aug 2003 06:06:12 +0000 (23:06 -0700)
We should amend that test for zombies to include the "dead" state as
well.

kernel/signal.c

index 24a339d75cb971b40d9410d3766984984ffb366c..bab76d941a3d3f32613c7fd11fd133183cdbe921 100644 (file)
@@ -1003,7 +1003,7 @@ void zap_other_threads(struct task_struct *p)
                /*
                 * Don't bother with already dead threads
                 */
-               if (t->state == TASK_ZOMBIE)
+               if (t->state & (TASK_ZOMBIE|TASK_DEAD))
                        continue;
 
                /*