stoddard    00/02/18 06:18:11

  Modified:    src/main http_log.c
  Log:
  Ahh, found ap_flush()!
  
  Revision  Changes    Path
  1.31      +1 -8      apache-2.0/src/main/http_log.c
  
  Index: http_log.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/main/http_log.c,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -r1.30 -r1.31
  --- http_log.c        2000/02/17 19:03:52     1.30
  +++ http_log.c        2000/02/18 14:18:11     1.31
  @@ -265,14 +265,7 @@
       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,
  
  
  

Reply via email to