From: Oleg Nesterov Date: Wed, 9 May 2007 09:34:21 +0000 (-0700) Subject: zap_other_threads: remove unneeded ->exit_signal change X-Git-Tag: v2.6.22-rc1~215 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4798833d26b293fd18b7bf102991426aa0b56fd;p=linux-2.6 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/signal.c b/kernel/signal.c index 4c8f49eadf..23ae6d62fc 100644 --- a/kernel/signal.c +++ b/kernel/signal.c @@ -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);