]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Instead of recording the Unix time in a process when it starts, record the
authorDag-Erling Smørgrav <des@FreeBSD.org>
Thu, 1 May 2003 16:59:23 +0000 (16:59 +0000)
committerDag-Erling Smørgrav <des@FreeBSD.org>
Thu, 1 May 2003 16:59:23 +0000 (16:59 +0000)
commit87ccef7b778beb59137c298ca69cb21048758631
treed8221c44ce99320f82809d2b7504a757957a47c4
parent09a80d4867b85b3df9856d150eb565232dc900d4
Instead of recording the Unix time in a process when it starts, record the
uptime.  Where necessary, convert it back to Unix time by adding boottime
to it.  This fixes a potential problem in the accounting code, which would
compute the elapsed time incorrectly if the Unix time was stepped during
the lifetime of the process.
sys/fs/procfs/procfs_status.c
sys/kern/init_main.c
sys/kern/kern_acct.c
sys/kern/kern_fork.c
sys/kern/kern_kthread.c
sys/kern/kern_proc.c
sys/nfsclient/nfs_lock.c