From: Ryan Bloom Date: Sun, 31 Dec 2000 19:19:07 +0000 (+0000) Subject: Use a real pool to dup the error log file descriptor. X-Git-Tag: APACHE_2_0_BETA_CANDIDATE_1~295 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e417013fbc8de81a113578e30a2a453e40e04726;p=apache Use a real pool to dup the error log file descriptor. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87560 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index 6052e1f76a..8d283e79db 100644 --- 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] diff --git a/server/log.c b/server/log.c index 7a67f6b39d..df4196ee2c 100644 --- a/server/log.c +++ b/server/log.c @@ -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 {