]> git.baikalelectronics.ru Git - kernel.git/commit
kill my_ptrace_child()
authorOleg Nesterov <oleg@tv-sign.ru>
Fri, 8 Feb 2008 12:18:59 +0000 (04:18 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 8 Feb 2008 17:22:26 +0000 (09:22 -0800)
commit0e2e20f20d23fe6413780b9c4d1654a7a4d50d15
tree4e7312642adb1aab0ba9fa4f29b4912c9ee035d2
parentc975ca143d1fb092ddd854e64744914a65a1e35f
kill my_ptrace_child()

Now that my_ptrace_child() is trivial we can use the "p->ptrace & PT_PTRACED"
inline and simplify the corresponding logic in do_wait: we can't find the
child in TASK_TRACED state without PT_PTRACED flag set, ptrace_untrace()
either sets TASK_STOPPED or wakes up the tracee.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Acked-by: Roland McGrath <roland@redhat.com>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/exit.c