Commit d946b9ee authored by Daniel Jacobowitz's avatar Daniel Jacobowitz

Set ptrace_message before PT_TRACE_EXIT.

parent fd44ae68
......@@ -729,8 +729,10 @@ NORET_TYPE void do_exit(long code)
profile_exit_task(tsk);
if (unlikely(current->ptrace & PT_TRACE_EXIT))
if (unlikely(current->ptrace & PT_TRACE_EXIT)) {
current->ptrace_message = code;
ptrace_notify((PTRACE_EVENT_EXIT << 8) | SIGTRAP);
}
acct_process(code);
__exit_mm(tsk);
......
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