diff options
-rw-r--r-- | kernel/ptrace.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/ptrace.c b/kernel/ptrace.c index e2302e40b360..6acf8954017c 100644 --- a/kernel/ptrace.c +++ b/kernel/ptrace.c | |||
@@ -312,8 +312,6 @@ static int ptrace_detach(struct task_struct *child, unsigned int data) | |||
312 | if (child->ptrace) { | 312 | if (child->ptrace) { |
313 | child->exit_code = data; | 313 | child->exit_code = data; |
314 | dead = __ptrace_detach(current, child); | 314 | dead = __ptrace_detach(current, child); |
315 | if (!child->exit_state) | ||
316 | wake_up_state(child, TASK_TRACED | TASK_STOPPED); | ||
317 | } | 315 | } |
318 | write_unlock_irq(&tasklist_lock); | 316 | write_unlock_irq(&tasklist_lock); |
319 | 317 | ||