diff options
Diffstat (limited to 'sys/kern/kern_synch.c')
-rw-r--r-- | sys/kern/kern_synch.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c index a2a44ff..b49999b 100644 --- a/sys/kern/kern_synch.c +++ b/sys/kern/kern_synch.c @@ -575,6 +575,7 @@ msleep(ident, mtx, priority, wmesg, timo) * the wrong msleep(). Yuck. */ td->td_flags |= TDF_TIMEOUT; + td->td_state = TDS_SLP; p->p_stats->p_ru.ru_nivcsw++; mi_switch(); } |