Respect TDF_SINTR, don't suspend uninterruptible thread.

This commit is contained in:
davidxu 2004-11-05 22:40:33 +00:00
parent 1ea9917110
commit ab5ce77983

View File

@ -832,11 +832,10 @@ thread_single(int mode)
continue;
/*
* maybe other inhibitted states too?
* XXXKSE Is it totally safe to
* suspend a non-interruptable thread?
*/
if (td2->td_inhibitors &
(TDI_SLEEPING | TDI_SWAPPED))
if ((td2->td_flags & TDF_SINTR) &&
(td2->td_inhibitors &
(TDI_SLEEPING | TDI_SWAPPED)))
thread_suspend_one(td2);
break;
}