Merge commit 'jwb/next' into next
[deliverable/linux.git] / kernel / fork.c
index e8e854a04ad2aa87927de3102bc4d2e1a5d87c04..a66fbde20715bb2d93180b7b3d03541d31d9c068 100644 (file)
@@ -1006,6 +1006,7 @@ static struct task_struct *copy_process(unsigned long clone_flags,
         * triggers too late. This doesn't hurt, the check is only there
         * to stop root fork bombs.
         */
+       retval = -EAGAIN;
        if (nr_threads >= max_threads)
                goto bad_fork_cleanup_count;
 
@@ -1094,7 +1095,7 @@ 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)))
+       if (unlikely(current->ptrace))
                ptrace_fork(p, clone_flags);
 
        /* Perform scheduler related setup. Assign this task to a CPU. */
This page took 0.024396 seconds and 5 git commands to generate.