Commit f7389634 authored by Bill Stoddard's avatar Bill Stoddard
Browse files

Ahh, found ap_flush()!


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84643 13f79535-47bb-0310-9956-ffa450edef68
parent 499ecf8b
Loading
Loading
Loading
Loading
+1 −8
Changes for server/log.c: 1 added line, 8 removed lines.
Original line number Diff line number Diff line
@@ -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,