diff options
Diffstat (limited to 'sys/kern/kern_fork.c')
-rw-r--r-- | sys/kern/kern_fork.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index 78c6d8b..90f13c4 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -287,6 +287,7 @@ fork1(td, flags, pages, procp) #ifdef MAC mac_init_proc(newproc); #endif + knlist_init(&newproc->p_klist, &newproc->p_mtx); /* We have to lock the process tree while we look for a pid. */ sx_slock(&proctree_lock); @@ -722,7 +723,7 @@ again: /* * Tell any interested parties about the new process. */ - KNOTE(&p1->p_klist, NOTE_FORK | p2->p_pid); + KNOTE_LOCKED(&p1->p_klist, NOTE_FORK | p2->p_pid); PROC_UNLOCK(p1); |