|
@@ -73,6 +73,8 @@ void __ptrace_unlink(struct task_struct *child)
|
|
|
{
|
|
|
BUG_ON(!child->ptrace);
|
|
|
|
|
|
+ clear_tsk_thread_flag(child, TIF_SYSCALL_TRACE);
|
|
|
+
|
|
|
child->parent = child->real_parent;
|
|
|
list_del_init(&child->ptrace_entry);
|
|
|
|
|
@@ -489,7 +491,6 @@ static int ptrace_detach(struct task_struct *child, unsigned int data)
|
|
|
|
|
|
/* Architecture-specific hardware disable .. */
|
|
|
ptrace_disable(child);
|
|
|
- clear_tsk_thread_flag(child, TIF_SYSCALL_TRACE);
|
|
|
|
|
|
write_lock_irq(&tasklist_lock);
|
|
|
/*
|