From 4a765181cc255cc0f39f3a021c4b4917200ec183 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Thu, 5 Jan 2006 12:33:23 -0500 Subject: [PATCH] ENH: flush the output --- Source/CPack/cmCPackLog.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/CPack/cmCPackLog.cxx b/Source/CPack/cmCPackLog.cxx index 4b7d285ca..bb42dc879 100644 --- a/Source/CPack/cmCPackLog.cxx +++ b/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 ) {