diff options
author | julian <julian@FreeBSD.org> | 2002-07-02 05:40:51 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2002-07-02 05:40:51 +0000 |
commit | 3480b426f56630106d09d39b69abfba723b845df (patch) | |
tree | e8793177934c50d0da222adaa7705a88641e687d | |
parent | 141fe2d3fef9dd51e6cfd5da25fcaacb133c6a9f (diff) | |
download | FreeBSD-src-3480b426f56630106d09d39b69abfba723b845df.zip FreeBSD-src-3480b426f56630106d09d39b69abfba723b845df.tar.gz |
When going back to SLEEP state, make sure our
State is correctly marked so.
-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(); } |