From: Roland McGrath Date: Thu, 7 Aug 2003 06:06:12 +0000 (-0700) Subject: [PATCH] fixes to zap_other_threads fix X-Git-Tag: v2.6.0-test3~12^2~8 X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=113dafa7877181e3132d416d95e0a6424cfe1ac0;p=history.git [PATCH] fixes to zap_other_threads fix We should amend that test for zombies to include the "dead" state as well. --- diff --git a/kernel/signal.c b/kernel/signal.c index 24a339d75cb9..bab76d941a3d 100644 --- a/kernel/signal.c +++ b/kernel/signal.c @@ -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; /*