Revert previous change, the existing check was correct.
Pointy hat to: jhb
This commit is contained in:
parent
21f8f506fb
commit
a328d5359c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=218971
@ -153,7 +153,7 @@ create_thread(struct thread *td, mcontext_t *ctx,
|
||||
p = td->td_proc;
|
||||
|
||||
/* Have race condition but it is cheap. */
|
||||
if (p->p_numthreads > max_threads_per_proc) {
|
||||
if (p->p_numthreads >= max_threads_per_proc) {
|
||||
++max_threads_hits;
|
||||
return (EPROCLIM);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user