Revert previous change, the existing check was correct.

Pointy hat to:	jhb
This commit is contained in:
John Baldwin 2011-02-23 13:25:42 +00:00
parent 21f8f506fb
commit a328d5359c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=218971

View File

@ -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);
}