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:
David Xu 2003-06-16 23:46:41 +00:00
parent c83b0b621f
commit 4184d79115
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=116452
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;
}