]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Debug conf pool constness. This is a noop most of the time on most
authorWilliam A. Rowe Jr <wrowe@apache.org>
Fri, 28 Sep 2001 15:24:34 +0000 (15:24 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Fri, 28 Sep 2001 15:24:34 +0000 (15:24 +0000)
  platforms, but it's only called twice per restart, so this is mostly
  harmless.

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

server/main.c

index 4b18845e141e42a8e01d489e9f156e42f5182f8a..9aa11f640c6f24e633f75cb26d90c3c2b8b3359b 100644 (file)
@@ -425,11 +425,14 @@ int main(int argc, const char * const argv[])
        ap_run_open_logs(pconf, plog, ptemp, server_conf);
        ap_run_post_config(pconf, plog, ptemp, server_conf);
        apr_pool_destroy(ptemp);
+       apr_pool_lock(pconf, 1);
 
        ap_run_optional_fn_retrieve();
 
        if (ap_mpm_run(pconf, plog, server_conf)) break;
+       apr_pool_lock(pconf, 0);
     }
+    apr_pool_lock(pconf, 0);
     destroy_and_exit_process(process, 0);
     return 0; /* Supress compiler warning. */
 }