aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@tv-sign.ru>2007-05-09 05:34:21 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-09 15:30:53 -0400
commita4798833d26b293fd18b7bf102991426aa0b56fd (patch)
treea564a45ee791e8418692c4171ed018dc90734238
parent85f4186af944c1240c84934a9ab578743df2d69b (diff)
zap_other_threads: remove unneeded ->exit_signal change
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 <oleg@tv-sign.ru> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--kernel/signal.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/kernel/signal.c b/kernel/signal.c
index 4c8f49eadf7d..23ae6d62fc41 100644
--- a/kernel/signal.c
+++ b/kernel/signal.c
@@ -913,17 +913,6 @@ void zap_other_threads(struct task_struct *p)
913 if (t->exit_state) 913 if (t->exit_state)
914 continue; 914 continue;
915 915
916 /*
917 * We don't want to notify the parent, since we are
918 * killed as part of a thread group due to another
919 * thread doing an execve() or similar. So set the
920 * exit signal to -1 to allow immediate reaping of
921 * the process. But don't detach the thread group
922 * leader.
923 */
924 if (t != p->group_leader)
925 t->exit_signal = -1;
926
927 /* SIGKILL will be handled before any pending SIGSTOP */ 916 /* SIGKILL will be handled before any pending SIGSTOP */
928 sigaddset(&t->pending.signal, SIGKILL); 917 sigaddset(&t->pending.signal, SIGKILL);
929 signal_wake_up(t, 1); 918 signal_wake_up(t, 1);