* Oleg Nesterov o...@redhat.com [2009-10-26 04:28:46]:
@@ -169,9 +164,9 @@ static inline void ptrace_init_task(stru
INIT_LIST_HEAD(child-ptraced);
child-parent = child-real_parent;
child-ptrace = 0;
- if (unlikely(ptrace)) {
+ if (unlikely(ptrace) (current-ptrace
No functional changes, preparation for utrace-ptrace.
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