diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2005-09-15 21:09:31 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2005-09-15 21:09:31 +0000 |
commit | 7a9949a766efb61c185c9bf2f8f4c6b31008d9b5 (patch) | |
tree | a5e37ca21895b77eb035b59e2d38c4305a441b91 /sys/arch/alpha | |
parent | b2910516abe27ac21394fe05cfbe8d5b208565be (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/alpha')
-rw-r--r-- | sys/arch/alpha/alpha/trap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/alpha/alpha/trap.c b/sys/arch/alpha/alpha/trap.c index 2b4060a6a5e..9212ffa8f47 100644 --- a/sys/arch/alpha/alpha/trap.c +++ b/sys/arch/alpha/alpha/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.46 2005/04/28 17:19:27 deraadt Exp $ */ +/* $OpenBSD: trap.c,v 1.47 2005/09/15 21:09:27 miod Exp $ */ /* $NetBSD: trap.c,v 1.52 2000/05/24 16:48:33 thorpej Exp $ */ /*- @@ -726,7 +726,8 @@ child_return(arg) userret(p, p->p_md.md_tf->tf_regs[FRAME_PC], 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 } |