Commit a35b8984 authored by Ryan Bloom's avatar Ryan Bloom
Browse files

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
parent 6da59e14
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
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]

+1 −1
Original line number Diff line number Diff line
@@ -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 {