diff options
author | julian <julian@FreeBSD.org> | 2003-02-08 02:58:16 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2003-02-08 02:58:16 +0000 |
commit | cf07da2f1a9c11bd6217a035a0030e534abf083b (patch) | |
tree | 59aa9ff69b6c6ff58c9fa692d67e8d00db572b2a /sys/kern/kern_exit.c | |
parent | 7d8a20cfb408ed95a173c94b409ea9234af1ee1f (diff) | |
download | FreeBSD-src-cf07da2f1a9c11bd6217a035a0030e534abf083b.zip FreeBSD-src-cf07da2f1a9c11bd6217a035a0030e534abf083b.tar.gz |
A little infrastructure, preceding some upcoming changes
to the profiling and statistics code.
Submitted by: DavidXu@
Reviewed by: peter@
Diffstat (limited to 'sys/kern/kern_exit.c')
-rw-r--r-- | sys/kern/kern_exit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c index 0b2c2e8..5721444 100644 --- a/sys/kern/kern_exit.c +++ b/sys/kern/kern_exit.c @@ -238,7 +238,6 @@ exit1(td, rv) TAILQ_FOREACH(ep, &exit_list, next) (*ep->function)(p); - stopprofclock(p); MALLOC(p->p_ru, struct rusage *, sizeof(struct rusage), M_ZOMBIE, 0); @@ -247,6 +246,7 @@ exit1(td, rv) * P_PPWAIT is set; we will wakeup the parent below. */ PROC_LOCK(p); + stopprofclock(p); p->p_flag &= ~(P_TRACED | P_PPWAIT); SIGEMPTYSET(p->p_siglist); PROC_UNLOCK(p); |