summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2006-04-16 22:36:44 +0000
committermiod <miod@openbsd.org>2006-04-16 22:36:44 +0000
commitbaed9054854787f2517364d30b4b7d6fb112f235 (patch)
treedf096eb99ae92e466a066888aa31522befdf22f4
parentUse __func__ to get the current function name, no need to declare a variable (diff)
downloadwireguard-openbsd-baed9054854787f2517364d30b4b7d6fb112f235.tar.xz
wireguard-openbsd-baed9054854787f2517364d30b4b7d6fb112f235.zip
Change child_return() to record a proper ktrace record for vfork child
processes. ok art@ uwe@ (some time ago, and I forgot to commit this chunk)
-rw-r--r--sys/arch/m68k/m68k/m68k_machdep.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/m68k/m68k/m68k_machdep.c b/sys/arch/m68k/m68k/m68k_machdep.c
index 021aa91dfd8..1b064a7cf5b 100644
--- a/sys/arch/m68k/m68k/m68k_machdep.c
+++ b/sys/arch/m68k/m68k/m68k_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: m68k_machdep.c,v 1.7 2005/11/06 17:59:57 miod Exp $ */
+/* $OpenBSD: m68k_machdep.c,v 1.8 2006/04/16 22:36:44 miod Exp $ */
/* $NetBSD: m68k_machdep.c,v 1.3 1997/06/12 09:57:04 veego Exp $ */
/*-
@@ -106,7 +106,8 @@ child_return(arg)
userret(p, f, p->p_sticks, 0, 0);
#ifdef KTRACE
if (KTRPOINT(p, KTR_SYSRET))
- ktrsysret(p, SYS_fork, 0, 0);
+ ktrsysret(p,
+ (p->p_flag & P_PPWAIT) ? SYS_vfork : SYS_fork, 0, 0);
#endif
}