diff options
| author | Daniel Jacobowitz <drow@nevyn.them.org> | 2003-02-15 12:40:07 -0500 |
|---|---|---|
| committer | Daniel Jacobowitz <drow@nevyn.them.org> | 2003-02-15 12:40:07 -0500 |
| commit | d946b9ee265d41ea5015fd85028b202605836f9b (patch) | |
| tree | f85185758fdef6b059f8da064b1350d768ffb37f /kernel | |
| parent | fd44ae6845e56ca7ac3435e2ec3ad984d9b7a4b7 (diff) | |
Set ptrace_message before PT_TRACE_EXIT.
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/exit.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/exit.c b/kernel/exit.c index 58546ab8fe54..d2d7c72f1e81 100644 --- a/kernel/exit.c +++ b/kernel/exit.c @@ -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); |
