]> granicus.if.org Git - apache/commitdiff
Ahh, found ap_flush()!
authorBill Stoddard <stoddard@apache.org>
Fri, 18 Feb 2000 14:18:11 +0000 (14:18 +0000)
committerBill Stoddard <stoddard@apache.org>
Fri, 18 Feb 2000 14:18:11 +0000 (14:18 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84643 13f79535-47bb-0310-9956-ffa450edef68

server/log.c

index 704ff6d4abf365f4965a9534735daf7b20860a1b..52c84743a8c32647e85d6bfcfb1179ed45b2de8e 100644 (file)
@@ -265,14 +265,7 @@ void ap_open_logs(server_rec *s_main, ap_context_t *p)
     replace_stderr = 1;
     if (s_main->error_log) {
         /* replace stderr with this new log */
-#ifdef WIN32
-        /* ToDo: Create ap_fflush() */
-        HANDLE hFile;
-        ap_get_os_file(&hFile, s_main->error_log);
-        FlushFileBuffers(hFile);
-#else
-        fflush(stderr);
-#endif
+        ap_flush(s_main->error_log);
         ap_open_stderr(&errfile, p);        
         if ((rc = ap_dupfile(&errfile, s_main->error_log)) != APR_SUCCESS) {
             ap_log_error(APLOG_MARK, APLOG_CRIT, rc, s_main,