Commit cb6156e1 authored by Anton Blanchard's avatar Anton Blanchard

ppc64: ptrace signal fix

parent 2c9c952c
...@@ -292,11 +292,11 @@ void do_syscall_trace(void) ...@@ -292,11 +292,11 @@ void do_syscall_trace(void)
return; return;
if (!(current->ptrace & PT_PTRACED)) if (!(current->ptrace & PT_PTRACED))
return; return;
current->exit_code = SIGTRAP | ((current->ptrace & PT_TRACESYSGOOD) /* the 0x80 provides a way for the tracing parent to distinguish
? 0x80 : 0); between a syscall stop and SIGTRAP delivery */
current->state = TASK_STOPPED; ptrace_notify(SIGTRAP | ((current->ptrace & PT_TRACESYSGOOD)
notify_parent(current, SIGCHLD); ? 0x80 : 0));
schedule();
/* /*
* this isn't the same as continuing with a signal, but it will do * 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 * for normal use. strace only continues with a signal if the
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment