vserver 1.9.3
[linux-2.6.git] / arch / sh64 / kernel / ptrace.c
index 887e89a..c48bc4a 100644 (file)
@@ -311,11 +311,8 @@ asmlinkage void syscall_trace(void)
        if (!(tsk->ptrace & PT_PTRACED))
                return;
 
-       tsk->exit_code = SIGTRAP | ((current->ptrace & PT_TRACESYSGOOD)
-                                   ? 0x80 : 0);
-       tsk->state = TASK_STOPPED;
-       notify_parent(tsk, SIGCHLD);
-       schedule();
+       ptrace_notify(SIGTRAP | ((current->ptrace & PT_TRACESYSGOOD)
+                                ? 0x80 : 0));
        /*
         * this isn't the same as continuing with a signal, but it will do
         * for normal use.  strace only continues with a signal if the