diff options
Diffstat (limited to 'sys/kern/kern_synch.c')
-rw-r--r-- | sys/kern/kern_synch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c index 0c479c7..cf6591f 100644 --- a/sys/kern/kern_synch.c +++ b/sys/kern/kern_synch.c @@ -161,7 +161,7 @@ msleep(ident, mtx, priority, wmesg, timo) * the thread (recursion here might be bad). * Hence the TDF_INMSLEEP flag. */ - if (p->p_flag & P_THREADED) { + if (p->p_flag & P_THREADED || p->p_numthreads > 1) { /* * Just don't bother if we are exiting * and not the exiting thread or thread was marked as |