diff options
author | attilio <attilio@FreeBSD.org> | 2007-06-10 00:28:41 +0000 |
---|---|---|
committer | attilio <attilio@FreeBSD.org> | 2007-06-10 00:28:41 +0000 |
commit | 69b3aaa447b3bbca8496b00bc66d05a185d55e62 (patch) | |
tree | bec1888640733522a00c14a1aa1af19bb590b128 /sys/kern | |
parent | faf9b9cc383af4cb476fb3be50df73b3ef888e70 (diff) | |
download | FreeBSD-src-69b3aaa447b3bbca8496b00bc66d05a185d55e62.zip FreeBSD-src-69b3aaa447b3bbca8496b00bc66d05a185d55e62.tar.gz |
Fix a bug caming from the committing a pre-merge version of the patch
instead than a post-merge version (respect to another rusage fix).
Reported by: marcel
Approved by: jeff(mentor)
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/init_main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index 54d78e6..c0eac133 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -509,7 +509,9 @@ proc0_post(void *dummy __unused) sx_slock(&allproc_lock); FOREACH_PROC_IN_SYSTEM(p) { microuptime(&p->p_stats->p_start); + PROC_SLOCK(p); rufetch(p, &ru); /* Clears thread stats */ + PROC_SUNLOCK(p); p->p_rux.rux_runtime = 0; p->p_rux.rux_uticks = 0; p->p_rux.rux_sticks = 0; |