On 08/19/2014 12:39 PM, Jan Kaluža wrote:
@@ -3206,6 +3277,10 @@ static int event_pre_config(apr_pool_t *
                          "atomics not working as expected - add32 of
negative number");
             return HTTP_INTERNAL_SERVER_ERROR;
         }
+        retained->idle_spawn_rate = apr_palloc(pconf, sizeof(int) *
num_buckets);
+        for (i = 0; i< num_buckets; i++) {
+            retained->idle_spawn_rate[i] = 1;
+        }
         rv = apr_pollset_create(&event_pollset, 1, plog,
                                 APR_POLLSET_THREADSAFE |
APR_POLLSET_NOCOPY);
         if (rv != APR_SUCCESS) {

Shouldn't this be done outside of "if (!one_process && !foreground)"
condition? Otherwise in the case of -DFOREGROUND, it will crash because
retained->idle_spawn_rate is NULL.

Done in r1620569.

Jan Kaluza

Jan Kaluza


Reply via email to