Use the universal 'threaded process' flag rather than the

specific tests for different threading systems.

MFC after:	1 week
This commit is contained in:
Julian Elischer 2004-09-25 00:53:46 +00:00
parent 3a67cb3bb1
commit 2179a22cc7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=135780

View file

@ -1043,7 +1043,7 @@ thread_sleep_check(struct thread *td)
p = td->td_proc;
mtx_assert(&sched_lock, MA_OWNED);
if (p->p_flag & P_SA || p->p_numthreads > 1) {
if (p->p_flag & P_HADTHREADS) {
if ((p->p_flag & P_SINGLE_EXIT) && p->p_singlethread != td)
return (EINTR);
if (td->td_flags & TDF_INTERRUPT)