summaryrefslogtreecommitdiffstats
path: root/kernel/exit.c
diff options
context:
space:
mode:
authorOleg Nesterov2011-06-22 23:08:53 +0200
committerOleg Nesterov2011-06-27 20:30:08 +0200
commit9843a1e977977986d0a4c1000f2229b032572534 (patch)
tree8c3d8a77ed8b2a021451a493aa47162977c8001b /kernel/exit.c
parentkill tracehook_notify_death() (diff)
downloadkernel-qcow2-linux-9843a1e977977986d0a4c1000f2229b032572534.tar.gz
kernel-qcow2-linux-9843a1e977977986d0a4c1000f2229b032572534.tar.xz
kernel-qcow2-linux-9843a1e977977986d0a4c1000f2229b032572534.zip
__ptrace_detach: avoid task_detached(), check do_notify_parent()
__ptrace_detach() relies on the current obscure behaviour of do_notify_parent(tsk) which changes tsk->exit_signal if this child should be silently reaped. That is why we check task_detached(), it is true if the task is sub-thread, or it is the group_leader but its exit_signal was changed by do_notify_parent(). This is confusing, change the code to rely on !thread_group_leader() or the value returned by do_notify_parent(). Signed-off-by: Oleg Nesterov <oleg@redhat.com> Acked-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/exit.c')
0 files changed, 0 insertions, 0 deletions