don't reduce new thread's refcount if current thread can not set cpuset

for it, since the new thread will reduce it by itself.
This commit is contained in:
David Xu 2008-03-19 09:33:07 +00:00
parent 519e8d87bb
commit c8a4eae56f

View file

@ -218,7 +218,7 @@ out:
if (ret) {
THREAD_LIST_LOCK(curthread);
new_thread->tlflags |= TLFLAGS_DETACHED;
_thr_ref_delete_unlocked(curthread, new_thread);
THR_GCLIST_ADD(new_thread);
THREAD_LIST_UNLOCK(curthread);
}
}