diff options
author | jhb <jhb@FreeBSD.org> | 2011-02-23 13:25:42 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2011-02-23 13:25:42 +0000 |
commit | 5d87a422b4cda5d9ff1ec8e0bb1b36239d60e28e (patch) | |
tree | 18494be1366af951797852b5edad039e0d32f451 | |
parent | 6e95ae3692eb04741ba97c6eef352ae210087b79 (diff) | |
download | FreeBSD-src-5d87a422b4cda5d9ff1ec8e0bb1b36239d60e28e.zip FreeBSD-src-5d87a422b4cda5d9ff1ec8e0bb1b36239d60e28e.tar.gz |
Revert previous change, the existing check was correct.
Pointy hat to: jhb
-rw-r--r-- | sys/kern/kern_thr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_thr.c b/sys/kern/kern_thr.c index 63bf1bc..75656f0 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); } |