From 8bda8a620c07361b73d801d9f7b809f86a91681a Mon Sep 17 00:00:00 2001 From: David Xu Date: Wed, 28 Jul 2004 06:30:52 +0000 Subject: [PATCH] Use P_SINGLE_EXIT to check single-threading case, P_WEXIT is not for that purpose. --- sys/kern/kern_synch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c index 0cb02827d446..6b6d8298b757 100644 --- a/sys/kern/kern_synch.c +++ b/sys/kern/kern_synch.c @@ -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);