Forgot to commit code to disable creating a bound thread in same

group again except first kse_create syscall.

Noticed by: julian
This commit is contained in:
davidxu 2003-06-16 23:46:41 +00:00
parent 7b26cd770f
commit b88fca2077
2 changed files with 4 additions and 0 deletions

View File

@ -641,6 +641,8 @@ kse_create(struct thread *td, struct kse_create_args *uap)
ksegrp_link(newkg, p);
mtx_unlock_spin(&sched_lock);
} else {
if (!first && ((td->td_flags & TDF_SA) ^ sa) != 0)
return (EINVAL);
newkg = kg;
}

View File

@ -641,6 +641,8 @@ kse_create(struct thread *td, struct kse_create_args *uap)
ksegrp_link(newkg, p);
mtx_unlock_spin(&sched_lock);
} else {
if (!first && ((td->td_flags & TDF_SA) ^ sa) != 0)
return (EINVAL);
newkg = kg;
}