]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - kernel/fork.c
ptrace: copy_process() should disable stepping
[mv-sheeva.git] / kernel / fork.c
index b6cbd33dde807810981558c31236b3bb67fcae09..202a0ba63d3c198a2c891536fc93b749abb955b2 100644 (file)
@@ -1210,9 +1210,10 @@ static struct task_struct *copy_process(unsigned long clone_flags,
                p->sas_ss_sp = p->sas_ss_size = 0;
 
        /*
-        * Syscall tracing should be turned off in the child regardless
-        * of CLONE_PTRACE.
+        * Syscall tracing and stepping should be turned off in the
+        * child regardless of CLONE_PTRACE.
         */
+       user_disable_single_step(p);
        clear_tsk_thread_flag(p, TIF_SYSCALL_TRACE);
 #ifdef TIF_SYSCALL_EMU
        clear_tsk_thread_flag(p, TIF_SYSCALL_EMU);