From: Roland McGrath Date: Tue, 11 Apr 2006 05:54:16 +0000 (-0700) Subject: [PATCH] process accounting: take original leader's start_time in non-leader exec X-Git-Tag: v2.6.17-rc2~190 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5e902817fee1589badca1284f49eecc0ef0c200;p=pandora-kernel.git [PATCH] process accounting: take original leader's start_time in non-leader exec The only record we have of the real-time age of a process, regardless of execs it's done, is start_time. When a non-leader thread exec, the original start_time of the process is lost. Things looking at the real-time age of the process are fooled, for example the process accounting record when the process finally dies. This change makes the oldest start_time stick around with the process after a non-leader exec. This way the association between PID and start_time is kept constant, which seems correct to me. Signed-off-by: Roland McGrath Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed