Commit 113dafa7 authored by Roland McGrath's avatar Roland McGrath Committed by Linus Torvalds

[PATCH] fixes to zap_other_threads fix

We should amend that test for zombies to include the "dead" state as
well.
parent 8df07b49
...@@ -1003,7 +1003,7 @@ void zap_other_threads(struct task_struct *p) ...@@ -1003,7 +1003,7 @@ void zap_other_threads(struct task_struct *p)
/* /*
* Don't bother with already dead threads * Don't bother with already dead threads
*/ */
if (t->state == TASK_ZOMBIE) if (t->state & (TASK_ZOMBIE|TASK_DEAD))
continue; continue;
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment