Respect TDF_SINTR, don't suspend uninterruptible thread.
This commit is contained in:
parent
1ea9917110
commit
ab5ce77983
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user