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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=99248

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