From: David Reid Date: Fri, 11 Jan 2002 09:14:34 +0000 (+0000) Subject: This brings apache back in line with apr following the addition X-Git-Tag: 2.0.31~218 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=913291f2b64afc3fe33a5b9040e888b0a674a0c6;p=apache This brings apache back in line with apr following the addition of apr_file_dup2. Until Win32 and OS/2 have the function added this will break their builds, but Will Rowe has said he'll do it this morning and asked for the patch to apr to go in :) Go Will! git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92824 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/log.c b/server/log.c index e95db9ed02..a18f50c221 100644 --- a/server/log.c +++ b/server/log.c @@ -293,7 +293,7 @@ void ap_open_logs(server_rec *s_main, apr_pool_t *p) /* replace stderr with this new log */ apr_file_flush(s_main->error_log); apr_file_open_stderr(&errfile, p); - rc = apr_file_dup(&errfile, s_main->error_log, p); + rc = apr_file_dup2(&errfile, s_main->error_log, p); if (rc != APR_SUCCESS) { ap_log_error(APLOG_MARK, APLOG_CRIT, rc, s_main, "unable to replace stderr with error_log"); @@ -336,7 +336,7 @@ AP_DECLARE(void) ap_error_log2stderr(server_rec *s) { apr_file_open_stderr(&errfile, s->process->pool); if (s->error_log != NULL) { - apr_file_dup(&(s->error_log), errfile, s->process->pool); + apr_file_dup2(&(s->error_log), errfile, s->process->pool); } }