summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1999-08-09 12:19:08 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1999-08-09 12:19:08 +0000
commitbce82b49146a6d4ae74c6cc8cc3a3775f2e56630 (patch)
tree37c94ff6c9e547a24d7c8a62a5e775d21d8ad71b
parent0b99672bc0af1eacf415e55e26371359469a6bab (diff)
Stop profiling (see profil(2)) when we execve() a new process; ross@netbsd.org
-rw-r--r--sys/kern/kern_exec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c
index 51920ebba64..84ce9ec608c 100644
--- a/sys/kern/kern_exec.c
+++ b/sys/kern/kern_exec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_exec.c,v 1.32 1999/07/15 14:11:05 art Exp $ */
+/* $OpenBSD: kern_exec.c,v 1.33 1999/08/09 12:19:07 millert Exp $ */
/* $NetBSD: kern_exec.c,v 1.75 1996/02/09 18:59:28 christos Exp $ */
/*-
@@ -439,6 +439,7 @@ sys_execve(p, v, retval)
((char *)PS_STRINGS) - szsigcode, szsigcode))
goto exec_abort;
+ stopprofclock(p); /* stop profiling */
fdcloseexec(p); /* handle close on exec */
execsigs(p); /* reset catched signals */