summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-12-02 02:14:52 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-02 02:16:45 +0300
commit4d31830cd1852f017fdaa5f4047339204cb62c71 (patch)
tree7ab1536afb38ede18e7088ada68e7a78db3a73ba
parent8d4d9fea737524b05cea08b21549aec84eeb4ef8 (diff)
downloadmv-4d31830cd1852f017fdaa5f4047339204cb62c71.tar.gz
mv-4d31830cd1852f017fdaa5f4047339204cb62c71.tar.bz2
mv-4d31830cd1852f017fdaa5f4047339204cb62c71.tar.xz
mv-4d31830cd1852f017fdaa5f4047339204cb62c71.zip
Flush log writes in nacl after each log write.
-rw-r--r--src/logger.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/logger.cpp b/src/logger.cpp
index c1beca132..5e0485803 100644
--- a/src/logger.cpp
+++ b/src/logger.cpp
@@ -81,6 +81,9 @@ Logger::Logger() :
mDebugLog(false),
mReportUnimplimented(false)
{
+#if defined __native_client__ && defined(NACL_LOG)
+ std::cout.setf(std::ios_base::unitbuf);
+#endif
}
Logger::~Logger()