Use P_SINGLE_EXIT to check single-threading case, P_WEXIT is not for that

purpose.
This commit is contained in:
David Xu 2004-07-28 06:30:52 +00:00
parent 1f74490224
commit 8bda8a620c

View File

@ -175,7 +175,7 @@ msleep(ident, mtx, priority, wmesg, timo)
* interrupted.
*/
if (catch) {
if ((p->p_flag & P_WEXIT) && p->p_singlethread != td) {
if ((p->p_flag & P_SINGLE_EXIT) && p->p_singlethread != td) {
mtx_unlock_spin(&sched_lock);
sleepq_release(ident);
return (EINTR);