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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=116452
@ -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