diff options
author | Oleg Nesterov <oleg@redhat.com> | 2011-06-22 17:10:11 -0400 |
---|---|---|
committer | Oleg Nesterov <oleg@redhat.com> | 2011-06-27 14:30:10 -0400 |
commit | d4f7c511c1c2a67eb287987cf1ce9554149030e6 (patch) | |
tree | 0756b300e8f558a923782a9ccea9a8b532e39159 /kernel/signal.c | |
parent | e550f14dc6322e794d4e70825f63c9c99177ae8b (diff) |
do not change dead_task->exit_signal
__ptrace_detach() and do_notify_parent() set task->exit_signal = -1
to mark the task dead. This is no longer needed, nobody checks
exit_signal to detect the EXIT_DEAD task.
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Reviewed-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/signal.c')
-rw-r--r-- | kernel/signal.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/kernel/signal.c b/kernel/signal.c index d52e82cd62bb..4c4ad34caf77 100644 --- a/kernel/signal.c +++ b/kernel/signal.c | |||
@@ -1650,7 +1650,6 @@ bool do_notify_parent(struct task_struct *tsk, int sig) | |||
1650 | * it, just use SIG_IGN instead). | 1650 | * it, just use SIG_IGN instead). |
1651 | */ | 1651 | */ |
1652 | autoreap = true; | 1652 | autoreap = true; |
1653 | tsk->exit_signal = -1; | ||
1654 | if (psig->action[SIGCHLD-1].sa.sa_handler == SIG_IGN) | 1653 | if (psig->action[SIGCHLD-1].sa.sa_handler == SIG_IGN) |
1655 | sig = 0; | 1654 | sig = 0; |
1656 | } | 1655 | } |