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:
parent
c83b0b621f
commit
4184d79115
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user