]> git.baikalelectronics.ru Git - kernel.git/commit
ptrace: cleanup ptrace_init_task()->ptrace_link() path
authorOleg Nesterov <oleg@redhat.com>
Wed, 16 Dec 2009 00:47:15 +0000 (16:47 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 16 Dec 2009 15:20:08 +0000 (07:20 -0800)
commit821a6c21bf0550c934c784b3ef74f321e4da73fb
treeb5ff696302607cd8f325199f84f88448e6475b84
parent721250282dc90caef7c8fcc7b0878741e926a712
ptrace: cleanup ptrace_init_task()->ptrace_link() path

No functional changes.

ptrace_init_task() looks confusing, as if we always auto-attach when "bool
ptrace" argument is true, while in fact we attach only if current is
traced.

Make the code more explicit and kill now unused ptrace_link().

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/ptrace.h