aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/ptrace.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/ptrace.c')
-rw-r--r--kernel/ptrace.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/ptrace.c b/kernel/ptrace.c
index 27ac80298bfa..43a5a3b0be79 100644
--- a/kernel/ptrace.c
+++ b/kernel/ptrace.c
@@ -305,6 +305,8 @@ int ptrace_detach(struct task_struct *child, unsigned int data)
305 if (child->ptrace) { 305 if (child->ptrace) {
306 child->exit_code = data; 306 child->exit_code = data;
307 dead = __ptrace_detach(current, child); 307 dead = __ptrace_detach(current, child);
308 if (!child->exit_state)
309 wake_up_process(child);
308 } 310 }
309 write_unlock_irq(&tasklist_lock); 311 write_unlock_irq(&tasklist_lock);
310 312