zap_other_threads: remove unneeded ->exit_signal change
authorOleg Nesterov <[email protected]>
Wed, 9 May 2007 09:34:21 +0000 (02:34 -0700)
committerLinus Torvalds <[email protected]>
Wed, 9 May 2007 19:30:53 +0000 (12:30 -0700)
We already depend on fact that all sub-threads have ->exit_signal == -1, no
need to set it in zap_other_threads().

Signed-off-by: Oleg Nesterov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
kernel/signal.c

index 4c8f49eadf7d344fb73846df5592d4e0b08d9aee..23ae6d62fc4134aac7e13061ad9d0b3058275ed8 100644 (file)
@@ -913,17 +913,6 @@ void zap_other_threads(struct task_struct *p)
                if (t->exit_state)
                        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
-                * exit signal to -1 to allow immediate reaping of
-                * the process.  But don't detach the thread group
-                * leader.
-                */
-               if (t != p->group_leader)
-                       t->exit_signal = -1;
-
                /* SIGKILL will be handled before any pending SIGSTOP */
                sigaddset(&t->pending.signal, SIGKILL);
                signal_wake_up(t, 1);