Revert previous change, the existing check was correct.

Pointy hat to:	jhb
This commit is contained in:
jhb 2011-02-23 13:25:42 +00:00
parent 6e95ae3692
commit 5d87a422b4

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