]> err.no Git - linux-2.6/commit
[PATCH] process accounting: take original leader's start_time in non-leader exec
authorRoland McGrath <roland@redhat.com>
Tue, 11 Apr 2006 05:54:16 +0000 (22:54 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 11 Apr 2006 13:18:42 +0000 (06:18 -0700)
commitf5e902817fee1589badca1284f49eecc0ef0c200
treec72c0b9ae52c81ccecbd434fb886f8f668245f74
parent491d4bed8051c655c7664b85446e13901463eb63
[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 <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/exec.c