summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2005-09-15 21:09:31 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2005-09-15 21:09:31 +0000
commit7a9949a766efb61c185c9bf2f8f4c6b31008d9b5 (patch)
treea5e37ca21895b77eb035b59e2d38c4305a441b91 /sys/arch/i386
parentb2910516abe27ac21394fe05cfbe8d5b208565be (diff)
Change child_return() to record a proper ktrace record for vfork child
processes. ok art@ uwe@ (some time ago)
Diffstat (limited to 'sys/arch/i386')
-rw-r--r--sys/arch/i386/i386/trap.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/i386/i386/trap.c b/sys/arch/i386/i386/trap.c
index 960753234ab..6880a4e4290 100644
--- a/sys/arch/i386/i386/trap.c
+++ b/sys/arch/i386/i386/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.69 2005/05/29 03:20:38 deraadt Exp $ */
+/* $OpenBSD: trap.c,v 1.70 2005/09/15 21:09:29 miod Exp $ */
/* $NetBSD: trap.c,v 1.95 1996/05/05 06:50:02 mycroft Exp $ */
/*-
@@ -839,7 +839,8 @@ child_return(arg)
#ifdef KTRACE
if (KTRPOINT(p, KTR_SYSRET)) {
KERNEL_PROC_LOCK(p);
- ktrsysret(p, SYS_fork, 0, 0);
+ ktrsysret(p,
+ (p->p_flag & P_PPWAIT) ? SYS_vfork : SYS_fork, 0, 0);
KERNEL_PROC_UNLOCK(p);
}
#endif