summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2004-07-28 06:30:52 +0000
committerdavidxu <davidxu@FreeBSD.org>2004-07-28 06:30:52 +0000
commit5610a7e0684771f72529a0fe2d87f5691a85364d (patch)
treea3b24450f2c6313a7240d1b8fe08b531867bffb7 /sys
parent65947d062b07d3533a6a7599723889ca01c24789 (diff)
downloadFreeBSD-src-5610a7e0684771f72529a0fe2d87f5691a85364d.zip
FreeBSD-src-5610a7e0684771f72529a0fe2d87f5691a85364d.tar.gz
Use P_SINGLE_EXIT to check single-threading case, P_WEXIT is not for that
purpose.
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_synch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c
index 0cb0282..6b6d829 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);
OpenPOWER on IntegriCloud