diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-04-16 22:36:45 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-04-16 22:36:45 +0000 |
commit | d7a07c316402ff6518fb078a694b255f53d42da6 (patch) | |
tree | b00cb8925e39d9082cd0f27028f408f51ad1d2be /sys/arch | |
parent | 413cd65ff9cefc62114f337d94740b74c47e6743 (diff) |
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)
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/m68k/m68k/m68k_machdep.c | 5 |
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 } |