From 5d87a422b4cda5d9ff1ec8e0bb1b36239d60e28e Mon Sep 17 00:00:00 2001 From: jhb Date: Wed, 23 Feb 2011 13:25:42 +0000 Subject: [PATCH] Revert previous change, the existing check was correct. Pointy hat to: jhb --- sys/kern/kern_thr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/kern_thr.c b/sys/kern/kern_thr.c index 63bf1bc1dd89..75656f03c186 100644 --- a/sys/kern/kern_thr.c +++ b/sys/kern/kern_thr.c @@ -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); }