summaryrefslogtreecommitdiffstats
path: root/kernel/ptrace.c
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@redhat.com>2011-06-22 23:10:11 +0200
committerOleg Nesterov <oleg@redhat.com>2011-06-27 20:30:10 +0200
commitd4f7c511c1c2a67eb287987cf1ce9554149030e6 (patch)
tree0756b300e8f558a923782a9ccea9a8b532e39159 /kernel/ptrace.c
parentkill task_detached() (diff)
downloadlinux-d4f7c511c1c2a67eb287987cf1ce9554149030e6.tar.xz
linux-d4f7c511c1c2a67eb287987cf1ce9554149030e6.zip
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/ptrace.c')
-rw-r--r--kernel/ptrace.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/kernel/ptrace.c b/kernel/ptrace.c
index 66a28bd71ef6..d7ccc79454f5 100644
--- a/kernel/ptrace.c
+++ b/kernel/ptrace.c
@@ -384,7 +384,6 @@ static bool __ptrace_detach(struct task_struct *tracer, struct task_struct *p)
dead = do_notify_parent(p, p->exit_signal);
else if (ignoring_children(tracer->sighand)) {
__wake_up_parent(p, tracer);
- p->exit_signal = -1;
dead = true;
}
}