summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_thr.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2011-02-23 13:25:42 +0000
committerjhb <jhb@FreeBSD.org>2011-02-23 13:25:42 +0000
commit5d87a422b4cda5d9ff1ec8e0bb1b36239d60e28e (patch)
tree18494be1366af951797852b5edad039e0d32f451 /sys/kern/kern_thr.c
parent6e95ae3692eb04741ba97c6eef352ae210087b79 (diff)
downloadFreeBSD-src-5d87a422b4cda5d9ff1ec8e0bb1b36239d60e28e.zip
FreeBSD-src-5d87a422b4cda5d9ff1ec8e0bb1b36239d60e28e.tar.gz
Revert previous change, the existing check was correct.
Pointy hat to: jhb
Diffstat (limited to 'sys/kern/kern_thr.c')
-rw-r--r--sys/kern/kern_thr.c2
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);
}
OpenPOWER on IntegriCloud