]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Changed my mind, ptemp maybe "systolic" but since it is empty
authorBen Hyde <bhyde@apache.org>
Thu, 7 Oct 1999 15:33:06 +0000 (15:33 +0000)
committerBen Hyde <bhyde@apache.org>
Thu, 7 Oct 1999 15:33:06 +0000 (15:33 +0000)
during the entire time the server is serving it's best to destroy it.

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

server/main.c

index 44e031fceac12dd50c817c851c23d6c1ddcc2c46..0251cf055d2a2d7396ec742113d8051c16108476 100644 (file)
@@ -334,17 +334,18 @@ API_EXPORT_NONSTD(int)        main(int argc, char *argv[])
     ap_clear_pool(plog);
     ap_run_open_logs(pconf, plog, ptemp, server_conf);
     ap_post_config_hook(pconf, plog, ptemp, server_conf);
-    ap_clear_pool(ptemp);
+    ap_destroy_pool(ptemp);
 
     for (;;) {
+       ap_create_context(&ptemp, pconf);
        ap_clear_pool(pconf);
-       ap_clear_pool(ptemp);
        ap_server_root = def_server_root;
        ap_run_pre_config(pconf, plog, ptemp);
        server_conf = ap_read_config(pconf, ptemp, confname);
        ap_clear_pool(plog);
        ap_run_open_logs(pconf, plog, ptemp, server_conf);
        ap_post_config_hook(pconf, plog, ptemp, server_conf);
+       ap_destroy_pool(ptemp);
 
        if (ap_mpm_run(pconf, plog, server_conf)) break;
     }