From: Jonathan Lim Date: Fri, 31 Aug 2007 06:56:23 +0000 (-0700) Subject: Assign task_struct.exit_code before taskstats_exit() X-Git-Tag: v2.6.23-rc5~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2ab6d8889422c1f5354f014e8bef337b1d1bade;p=pandora-kernel.git Assign task_struct.exit_code before taskstats_exit() taskstats.ac_exitcode is assigned to task_struct.exit_code in bacct_add_tsk() through the following kernel function calls: do_exit() taskstats_exit() fill_pid() bacct_add_tsk() The problem is that in do_exit(), task_struct.exit_code is set to 'code' only after taskstats_exit() has been called. So we need to move the assignment before taskstats_exit(). Signed-off-by: Jonathan Lim Cc: Balbir Singh Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed