Deleted Added
full compact
38c38
< __FBSDID("$FreeBSD: head/sys/kern/kern_fork.c 211616 2010-08-22 11:18:57Z rpaulo $");
---
> __FBSDID("$FreeBSD: head/sys/kern/kern_fork.c 212357 2010-09-09 09:58:05Z rpaulo $");
674d673
< #ifdef KDTRACE_HOOKS
676,683d674
< * Tell the DTrace fasttrap provider about the new process
< * if it has registered an interest.
< */
< if (dtrace_fasttrap_fork)
< dtrace_fasttrap_fork(p1, p2);
< #endif
<
< /*
746a738,752
> #ifdef KDTRACE_HOOKS
> /*
> * Tell the DTrace fasttrap provider about the new process
> * if it has registered an interest. We have to do this only after
> * p_state is PRS_NORMAL since the fasttrap module will use pfind()
> * later on.
> */
> if (dtrace_fasttrap_fork) {
> PROC_LOCK(p1);
> PROC_LOCK(p2);
> dtrace_fasttrap_fork(p1, p2);
> PROC_UNLOCK(p2);
> PROC_UNLOCK(p1);
> }
> #endif