summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_exit.c
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2003-02-08 02:58:16 +0000
committerjulian <julian@FreeBSD.org>2003-02-08 02:58:16 +0000
commitcf07da2f1a9c11bd6217a035a0030e534abf083b (patch)
tree59aa9ff69b6c6ff58c9fa692d67e8d00db572b2a /sys/kern/kern_exit.c
parent7d8a20cfb408ed95a173c94b409ea9234af1ee1f (diff)
downloadFreeBSD-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.c2
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);
OpenPOWER on IntegriCloud