summaryrefslogtreecommitdiffstats
path: root/server/scoreboard.c
diff options
context:
space:
mode:
authorJeff Trawick <trawick@apache.org>2002-03-13 13:25:31 +0100
committerJeff Trawick <trawick@apache.org>2002-03-13 13:25:31 +0100
commitd86a35b7e54d340dedefac9159c39a1fdd5413e5 (patch)
treea44f6e2d45f5c8fbf2739207a7f00b8d73e742a0 /server/scoreboard.c
parentSSL_SESSION_id2sz() was NOT THREAD SAFE. it returned a pointer to a (diff)
downloadapache2-d86a35b7e54d340dedefac9159c39a1fdd5413e5.tar.xz
apache2-d86a35b7e54d340dedefac9159c39a1fdd5413e5.zip
Fix the calculation of thread_num in the worker score structure.
Submitted by: Stas Bekman Reviewed by: Jeff Trawick git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93900 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server/scoreboard.c')
-rw-r--r--server/scoreboard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/scoreboard.c b/server/scoreboard.c
index be5befbfd8..a5fdcec886 100644
--- a/server/scoreboard.c
+++ b/server/scoreboard.c
@@ -429,7 +429,7 @@ AP_DECLARE(int) ap_update_child_status_from_indexes(int child_num,
if (status == SERVER_READY
&& old_status == SERVER_STARTING) {
- ws->thread_num = child_num * server_limit + thread_num;
+ ws->thread_num = child_num * thread_limit + thread_num;
ps->generation = ap_my_generation;
}