diff options
Diffstat (limited to 'kernel/exit.c')
-rw-r--r-- | kernel/exit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/exit.c b/kernel/exit.c index 9578c1ae19ca..06b24b3aa370 100644 --- a/kernel/exit.c +++ b/kernel/exit.c | |||
@@ -975,6 +975,7 @@ fastcall NORET_TYPE void do_exit(long code) | |||
975 | if (unlikely(tsk->audit_context)) | 975 | if (unlikely(tsk->audit_context)) |
976 | audit_free(tsk); | 976 | audit_free(tsk); |
977 | 977 | ||
978 | tsk->exit_code = code; | ||
978 | taskstats_exit(tsk, group_dead); | 979 | taskstats_exit(tsk, group_dead); |
979 | 980 | ||
980 | exit_mm(tsk); | 981 | exit_mm(tsk); |
@@ -996,7 +997,6 @@ fastcall NORET_TYPE void do_exit(long code) | |||
996 | if (tsk->binfmt) | 997 | if (tsk->binfmt) |
997 | module_put(tsk->binfmt->module); | 998 | module_put(tsk->binfmt->module); |
998 | 999 | ||
999 | tsk->exit_code = code; | ||
1000 | proc_exit_connector(tsk); | 1000 | proc_exit_connector(tsk); |
1001 | exit_task_namespaces(tsk); | 1001 | exit_task_namespaces(tsk); |
1002 | exit_notify(tsk); | 1002 | exit_notify(tsk); |