From 113dafa7877181e3132d416d95e0a6424cfe1ac0 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 6 Aug 2003 23:06:12 -0700 Subject: [PATCH] [PATCH] fixes to zap_other_threads fix We should amend that test for zombies to include the "dead" state as well. --- kernel/signal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/signal.c b/kernel/signal.c index 24a339d75cb97..bab76d941a3d3 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; /* -- 2.53.0