]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Fix core dump on WIN32 caused by the fact that there is no way to run a
authorMladen Turk <mturk@apache.org>
Wed, 15 Sep 2004 17:11:08 +0000 (17:11 +0000)
committerMladen Turk <mturk@apache.org>
Wed, 15 Sep 2004 17:11:08 +0000 (17:11 +0000)
hook after ap_scoreboard_init. Since we only have a single child on
WIN32 that isn't a big problem, cause plain memory is enough. Other
platforms were not affected cause scoreboard_image is inherited from parent.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105151 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/proxy_balancer.c

index 16d4fdd0aedc8e9731ed2c2031b463d1c3f2e7ee..0d6f3e342e3a637e10ae4e402222e2fe3bdb0a51 100644 (file)
@@ -52,7 +52,8 @@ static int init_runtime_score(apr_pool_t *pool, proxy_balancer *balancer)
     for (i = 0; i < balancer->workers->nelts; i++) {
 #if PROXY_HAS_SCOREBOARD
         /* Get scoreboard slot */
-        score = ap_get_scoreboard_lb(workers[i].id);
+        if (ap_scoreboard_image)
+            score = ap_get_scoreboard_lb(workers[i].id);
 #endif
         if (!score)
             score = apr_pcalloc(pool, sizeof(proxy_runtime_stat));