ptrace: reintroduce __ptrace_detach() as a callee of ptrace_exit()
authorOleg Nesterov <oleg@redhat.com>
Thu, 2 Apr 2009 23:58:13 +0000 (16:58 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 3 Apr 2009 02:04:59 +0000 (19:04 -0700)
commitb1b4c6799fb59e710454bfe0ab477cb8523a8667
tree1cdd19f00c584a8800ce0d3a5530b78d1cbd6e56
parent6d69cb87f05eef3b02370b2f7bae608ad2301a00
ptrace: reintroduce __ptrace_detach() as a callee of ptrace_exit()

No functional changes, preparation for the next patch.

Move the "should we release this child" logic into the separate handler,
__ptrace_detach().

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Cc: Jerome Marchand <jmarchan@redhat.com>
Cc: Roland McGrath <roland@redhat.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/exit.c