When going back to SLEEP state, make sure our

State is correctly marked so.
This commit is contained in:
julian 2002-07-02 05:40:51 +00:00
parent 141fe2d3fe
commit 3480b426f5

View File

@ -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();
}