diff options
author | Matt Joras <mjoras@FreeBSD.org> | 2017-11-09 22:51:48 +0000 |
---|---|---|
committer | Matt Joras <mjoras@FreeBSD.org> | 2017-11-09 22:51:48 +0000 |
commit | 2ca45184dcc132afd7d40dcf055c927f79fd0b73 (patch) | |
tree | 1af6efe6f866fecda6adac65a6fb7ad012a0e0aa /sys/kern/kern_fork.c | |
parent | c28d08e50c7835ac7b3593c49c2ee397efb67d01 (diff) | |
download | src-test2-2ca45184dcc132afd7d40dcf055c927f79fd0b73.tar.gz src-test2-2ca45184dcc132afd7d40dcf055c927f79fd0b73.zip |
Notes
Diffstat (limited to 'sys/kern/kern_fork.c')
-rw-r--r-- | sys/kern/kern_fork.c | 4 |
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. |