diff options
| author | Linus Torvalds <torvalds@home.osdl.org> | 2003-08-05 10:54:03 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.osdl.org> | 2003-08-05 10:54:03 -0700 |
| commit | defec5af59ff9a04902a2d716ac8dca7c16d32a6 (patch) | |
| tree | eef22291ded8767e1baf39678154eb7b1182081b /kernel | |
| parent | 4bce33009891a04bcc0bbe736ba2d0daf8536bf5 (diff) | |
Don't try to signal already-zombied threads in zap_threads.
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/signal.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/signal.c b/kernel/signal.c index 208e924cc9f4..24a339d75cb9 100644 --- a/kernel/signal.c +++ b/kernel/signal.c @@ -1001,6 +1001,12 @@ void zap_other_threads(struct task_struct *p) 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 * killed as part of a thread group due to another * thread doing an execve() or similar. So set the |
