diff options
author | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2012-04-11 14:38:56 +0000 |
---|---|---|
committer | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2012-04-11 14:38:56 +0000 |
commit | aa8bb5b66ca2ecf4eda492f90c5a223f5b046f8e (patch) | |
tree | 31ad4ffde1a8118fb37d026089db55643046ed32 /sys/arch/solbourne | |
parent | 6eacadb45a40963eac56a6cb8615584d3e9975ff (diff) |
The first ktrace record for a newly spawned thread is a return
from a fork syscall done by the parent. Use __tfork, not rfork
here to match the ktrace records for the parent (CALL __tfork,
RET __tfork). ok guenther
Diffstat (limited to 'sys/arch/solbourne')
-rw-r--r-- | sys/arch/solbourne/solbourne/trap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/solbourne/solbourne/trap.c b/sys/arch/solbourne/solbourne/trap.c index e894d945582..d80811eb4db 100644 --- a/sys/arch/solbourne/solbourne/trap.c +++ b/sys/arch/solbourne/solbourne/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.14 2011/11/16 20:50:19 deraadt Exp $ */ +/* $OpenBSD: trap.c,v 1.15 2012/04/11 14:38:55 mikeb Exp $ */ /* OpenBSD: trap.c,v 1.42 2004/12/06 20:12:25 miod Exp */ /* @@ -927,7 +927,7 @@ child_return(arg) #ifdef KTRACE if (KTRPOINT(p, KTR_SYSRET)) ktrsysret(p, - (p->p_flag & P_THREAD) ? SYS_rfork : + (p->p_flag & P_THREAD) ? SYS___tfork : (p->p_p->ps_flags & PS_PPWAIT) ? SYS_vfork : SYS_fork, 0, 0); #endif |