]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Logging fixes, round two. Authored and Reviewed by both rplume and wrowe
authorWilliam A. Rowe Jr <wrowe@apache.org>
Fri, 28 Sep 2007 17:24:26 +0000 (17:24 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Fri, 28 Sep 2007 17:24:26 +0000 (17:24 +0000)
within the same 10 minutes, this is the obvious fix to prevent any lingering
write handles from hanging around in unexpected ways.

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

server/log.c

index 14b4fdc21f1d988f8b2a5e40c6a1eb451769ba24..df75d22d0f2f0dae096ecb0ae0ce15e14339d578 100644 (file)
@@ -421,6 +421,12 @@ int ap_open_logs(apr_pool_t *pconf, apr_pool_t *p /* plog */,
                 apr_pool_destroy(stderr_pool);
             stderr_pool = stderr_p;
             replace_stderr = 0;
+
+            /* We are safer having only a single apr_file_t reference 
+             * to the new main error logging stream
+             */
+            apr_file_close(s_main->error_log);
+            s_main->error_log = stderr_log;
         }
     }
     /* note that stderr may still need to be replaced with something