]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/fork.c
x86, bts: add fork and exit handling
[linux-2.6-omap-h63xx.git] / kernel / fork.c
index 7b93da72d4a2331a69438e4ac347a477a70aadcd..65ce60adc8e8fac500319fb4a596b12f77ad94de 100644 (file)
@@ -1096,6 +1096,8 @@ static struct task_struct *copy_process(unsigned long clone_flags,
 #ifdef CONFIG_DEBUG_MUTEXES
        p->blocked_on = NULL; /* not blocked yet */
 #endif
+       if (unlikely(ptrace_reparented(current)))
+               ptrace_fork(p, clone_flags);
 
        /* Perform scheduler related setup. Assign this task to a CPU. */
        sched_fork(p, clone_flags);