When going back to SLEEP state, make sure our

State is correctly marked so.
This commit is contained in:
Julian Elischer 2002-07-02 05:40:51 +00:00
parent d5cb7e14f6
commit 8b768fc82b

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