]> granicus.if.org Git - apache/commitdiff
Use a real pool to dup the error log file descriptor.
authorRyan Bloom <rbb@apache.org>
Sun, 31 Dec 2000 19:19:07 +0000 (19:19 +0000)
committerRyan Bloom <rbb@apache.org>
Sun, 31 Dec 2000 19:19:07 +0000 (19:19 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87560 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
server/log.c

diff --git a/CHANGES b/CHANGES
index 6052e1f76aa6c7ba0d75421d86335510dab3a228..8d283e79dbac47d936b860ca88eb3415498b65fb 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,5 +1,7 @@
 Changes with Apache 2.0b1
 
+  *) Use a real pool to dup the error log descriptor.  [Ryan Bloom]
+
   *) Fix a segfault caused by mod_ext_filter when the external filter 
      program does not exist. [Jeff Trawick]
 
index 7a67f6b39de1c6ee7bc4ddc580eb8b15cad717bf..df4196ee2c45fba77e7bceef6c36819bc843f004 100644 (file)
@@ -286,7 +286,7 @@ void ap_open_logs(server_rec *s_main, apr_pool_t *p)
         /* replace stderr with this new log */
         apr_flush(s_main->error_log);
         apr_open_stderr(&errfile, p);        
-        if ((rc = apr_dupfile(&errfile, s_main->error_log, NULL)) != APR_SUCCESS) {
+        if ((rc = apr_dupfile(&errfile, s_main->error_log, p)) != APR_SUCCESS) {
             ap_log_error(APLOG_MARK, APLOG_CRIT, rc, s_main,
                          "unable to replace stderr with error_log");
         } else {