summaryrefslogtreecommitdiff
path: root/sys/kern/kern_fork.c
diff options
context:
space:
mode:
authorMatt Joras <mjoras@FreeBSD.org>2017-11-09 22:51:48 +0000
committerMatt Joras <mjoras@FreeBSD.org>2017-11-09 22:51:48 +0000
commit2ca45184dcc132afd7d40dcf055c927f79fd0b73 (patch)
tree1af6efe6f866fecda6adac65a6fb7ad012a0e0aa /sys/kern/kern_fork.c
parentc28d08e50c7835ac7b3593c49c2ee397efb67d01 (diff)
downloadsrc-test2-2ca45184dcc132afd7d40dcf055c927f79fd0b73.tar.gz
src-test2-2ca45184dcc132afd7d40dcf055c927f79fd0b73.zip
Notes
Diffstat (limited to 'sys/kern/kern_fork.c')
-rw-r--r--sys/kern/kern_fork.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c
index 997a783522ec..0c78046c24a8 100644
--- a/sys/kern/kern_fork.c
+++ b/sys/kern/kern_fork.c
@@ -97,6 +97,8 @@ struct fork_args {
};
#endif
+EVENTHANDLER_LIST_DECLARE(process_fork);
+
/* ARGSUSED */
int
sys_fork(struct thread *td, struct fork_args *uap)
@@ -699,7 +701,7 @@ do_fork(struct thread *td, struct fork_req *fr, struct proc *p2, struct thread *
* Both processes are set up, now check if any loadable modules want
* to adjust anything.
*/
- EVENTHANDLER_INVOKE(process_fork, p1, p2, fr->fr_flags);
+ EVENTHANDLER_DIRECT_INVOKE(process_fork, p1, p2, fr->fr_flags);
/*
* Set the child start time and mark the process as being complete.