Browse Source

ENH: flush the output

Andy Cedilnik 20 years ago
parent
commit
4a765181cc
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Source/CPack/cmCPackLog.cxx

+ 2 - 0
Source/CPack/cmCPackLog.cxx

@@ -208,10 +208,12 @@ void cmCPackLog::Log(int tag, const char* file, int line, const char* msg, size_
   if ( error || warning )
     {
     m_DefaultError->write(msg, length);
+    m_DefaultError->flush();
     }
   else
     {
     m_DefaultOutput->write(msg, length);
+    m_DefaultOutput->flush();
     }
   if ( msg[length-1] == '\n' || length > 2 )
     {