diff options
author | John Baldwin <jhb@FreeBSD.org> | 2003-05-13 20:36:02 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2003-05-13 20:36:02 +0000 |
commit | 90af4afacb3d76aba2261a2dba4a1c5f69670a19 (patch) | |
tree | 0e2ba79e40f08e96bb98756b67576ff96caccfbc /sys/kern/kern_kthread.c | |
parent | 3ecb3802eeb415f4837f7e0af26c584a333018d2 (diff) |
Notes
Diffstat (limited to 'sys/kern/kern_kthread.c')
-rw-r--r-- | sys/kern/kern_kthread.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/kern_kthread.c b/sys/kern/kern_kthread.c index d4846dda9635..7d38520e4382 100644 --- a/sys/kern/kern_kthread.c +++ b/sys/kern/kern_kthread.c @@ -94,7 +94,9 @@ kthread_create(void (*func)(void *), void *arg, /* this is a non-swapped system process */ PROC_LOCK(p2); p2->p_flag |= P_SYSTEM | P_KTHREAD; - p2->p_procsig->ps_flag |= PS_NOCLDWAIT; + mtx_lock(&p2->p_sigacts->ps_mtx); + p2->p_sigacts->ps_flag |= PS_NOCLDWAIT; + mtx_unlock(&p2->p_sigacts->ps_mtx); _PHOLD(p2); PROC_UNLOCK(p2); |