When going back to SLEEP state, make sure our
State is correctly marked so.
This commit is contained in:
parent
d5cb7e14f6
commit
8b768fc82b
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user