]> granicus.if.org Git - apache/commitdiff
Restore the apr_pool_clear calls to main.c in case we have
authorDavid Reid <dreid@apache.org>
Tue, 8 Jan 2002 17:07:19 +0000 (17:07 +0000)
committerDavid Reid <dreid@apache.org>
Tue, 8 Jan 2002 17:07:19 +0000 (17:07 +0000)
third-parties who are overriding the open_logs hook, in which case
they'd miss the plog being cleared.

Submitted by: Justin <jerenkrantz@apache.org>

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

server/core.c
server/main.c

index 09f5d8f9a213d82c82d8bd09c0524e37a74b40e5..a823de6352b2eb05ab6c2b40d51b1deab7569807 100644 (file)
@@ -3361,7 +3361,6 @@ static int core_post_config(apr_pool_t *pconf, apr_pool_t *plog, apr_pool_t *pte
 
 static int core_open_logs(apr_pool_t *pconf, apr_pool_t *plog, apr_pool_t *ptemp, server_rec *s)
 {
-    apr_pool_clear(plog);
     ap_open_logs(s, plog);
     return OK;  
 }
index dd6cf0b50b6def86e8794d3c6a991a3fbb9e862a..a024ea229da99857ed2a694e3e9d128e16b24fce 100644 (file)
@@ -411,6 +411,7 @@ int main(int argc, const char * const argv[])
        ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL, "Syntax OK\n");
        destroy_and_exit_process(process, 0);
     }
+    apr_pool_clear(plog);
     if ( ap_run_open_logs(pconf, plog, ptemp, server_conf) != OK) {
         ap_log_error(APLOG_MARK, APLOG_STARTUP |APLOG_ERR| APLOG_NOERRNO, 0, NULL, "Unable to open logs\n");
         destroy_and_exit_process(process, 1);
@@ -442,6 +443,7 @@ int main(int argc, const char * const argv[])
         ap_fixup_virtual_hosts(pconf, server_conf);
         ap_fini_vhost_config(pconf, server_conf);
         apr_sort_hooks();
+        apr_pool_clear(plog);
         if ( ap_run_open_logs(pconf, plog, ptemp, server_conf) != OK) {
             ap_log_error(APLOG_MARK, APLOG_STARTUP |APLOG_ERR| APLOG_NOERRNO, 0, NULL, "Unable to open logs\n");
             destroy_and_exit_process(process, 1);