ptrace: __ptrace_detach: do __wake_up_parent() if we reap the tracee
[linux-2.6-block.git] / kernel / exit.c
index 60d6fdcc926509da90ebe38b4e59c275290e8d9f..782b2e1f7ca286b17bddd6d5c3afeb1fb8911118 100644 (file)
@@ -1575,6 +1575,11 @@ static int ptrace_do_wait(struct wait_opts *wo, struct task_struct *tsk)
        return 0;
 }
 
+void __wake_up_parent(struct task_struct *p, struct task_struct *parent)
+{
+       wake_up_interruptible_sync(&parent->signal->wait_chldexit);
+}
+
 static long do_wait(struct wait_opts *wo)
 {
        DECLARE_WAITQUEUE(wait, current);