From 94b30e0ab56f1ea0567adc39582f2a02f9c28344 Mon Sep 17 00:00:00 2001 From: davidxu Date: Tue, 22 Oct 2002 02:27:19 +0000 Subject: [PATCH] detect idle kse correctly. --- sys/kern/kern_proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/kern_proc.c b/sys/kern/kern_proc.c index e38a6fb98ee6..960421ff77d9 100644 --- a/sys/kern/kern_proc.c +++ b/sys/kern/kern_proc.c @@ -346,7 +346,7 @@ kse_wakeup(struct thread *td, struct kse_wakeup_args *uap) FOREACH_KSE_IN_GROUP(kg, ke2) { if (ke2->ke_mailbox != uap->mbx) continue; - if (ke2->ke_flags & KEF_IDLEKSE) { + if (ke2->ke_state == KES_IDLE) { ke = ke2; goto found; } else {