]> granicus.if.org Git - apache/commitdiff
This brings apache back in line with apr following the addition
authorDavid Reid <dreid@apache.org>
Fri, 11 Jan 2002 09:14:34 +0000 (09:14 +0000)
committerDavid Reid <dreid@apache.org>
Fri, 11 Jan 2002 09:14:34 +0000 (09:14 +0000)
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

server/log.c

index e95db9ed02d0104138faaeec37c7d4650c19f2ce..a18f50c2219b20e43d2ca981c08191fbc56cebb3 100644 (file)
@@ -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);
     }
 }