From 4d31830cd1852f017fdaa5f4047339204cb62c71 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 2 Dec 2015 02:14:52 +0300 Subject: Flush log writes in nacl after each log write. --- src/logger.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/logger.cpp') 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() -- cgit v1.2.3-70-g09d2