mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-13 10:02:38 +00:00
suspend thread only when it can be interrupted.
This commit is contained in:
parent
0cf609706f
commit
ddc4f28155
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=105931
@ -1473,7 +1473,8 @@ thread_single(int force_exit)
|
||||
if (TD_IS_SUSPENDED(td2))
|
||||
continue;
|
||||
/* maybe other inhibitted states too? */
|
||||
if (TD_IS_SLEEPING(td2))
|
||||
if (TD_IS_SLEEPING(td2) &&
|
||||
(td2->td_flags & TDF_SINTR))
|
||||
thread_suspend_one(td2);
|
||||
}
|
||||
}
|
||||
|
@ -1473,7 +1473,8 @@ thread_single(int force_exit)
|
||||
if (TD_IS_SUSPENDED(td2))
|
||||
continue;
|
||||
/* maybe other inhibitted states too? */
|
||||
if (TD_IS_SLEEPING(td2))
|
||||
if (TD_IS_SLEEPING(td2) &&
|
||||
(td2->td_flags & TDF_SINTR))
|
||||
thread_suspend_one(td2);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user