From 2a1ed8bb9fbbfe4570c52fbd0bdc9587ebb33cab Mon Sep 17 00:00:00 2001 From: Bill Stoddard Date: Fri, 18 Feb 2000 14:18:11 +0000 Subject: [PATCH] Ahh, found ap_flush()! git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84643 13f79535-47bb-0310-9956-ffa450edef68 --- server/log.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/server/log.c b/server/log.c index 704ff6d4ab..52c84743a8 100644 --- a/server/log.c +++ b/server/log.c @@ -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, -- 2.40.0