Commit defec5af authored by Linus Torvalds's avatar Linus Torvalds

Don't try to signal already-zombied threads in zap_threads.

parent 4bce3300
...@@ -1000,6 +1000,12 @@ void zap_other_threads(struct task_struct *p) ...@@ -1000,6 +1000,12 @@ void zap_other_threads(struct task_struct *p)
return; return;
for (t = next_thread(p); t != p; t = next_thread(t)) { for (t = next_thread(p); t != p; t = next_thread(t)) {
/*
* Don't bother with already dead threads
*/
if (t->state == TASK_ZOMBIE)
continue;
/* /*
* We don't want to notify the parent, since we are * We don't want to notify the parent, since we are
* killed as part of a thread group due to another * killed as part of a thread group due to another
......
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