1
0
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:
David Xu 2002-10-25 13:12:36 +00:00
parent 0cf609706f
commit ddc4f28155
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=105931
2 changed files with 4 additions and 2 deletions

View File

@ -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);
}
}

View File

@ -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);
}
}