Eric W. Biederman 2d18f7f456 exit: Use the correct exit_code in /proc/<pid>/stat
Since do_proc_statt was modified to return process wide values instead
of per task values the exit_code calculation has never been updated.
Update it now to return the process wide exit_code when it is requested
and available.

History-Tree: https://git.kernel.org/pub/scm/linux/kernel/git/tglx/history.git
Fixes: bf719d26a5c1 ("[PATCH] distinct tgid/tid CPU usage")
Link: https://lkml.kernel.org/r/20220103213312.9144-4-ebiederm@xmission.com
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
2022-01-08 12:43:57 -06:00
..
2020-11-06 10:05:18 -08:00
2021-01-24 14:27:20 +01:00
2021-01-24 14:27:20 +01:00
2020-09-04 12:46:06 +01:00
2021-01-24 14:27:20 +01:00
2021-01-24 14:27:20 +01:00