From 77b5fe25effa0587ee36a24bc8559db2150ce6e9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Thu, 23 Apr 2009 15:23:49 +0100 Subject: [PATCH] Flush to ensure the file is in readable state if the process dies. --- log.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/log.cpp b/log.cpp index bab893f..5df0266 100644 --- a/log.cpp +++ b/log.cpp @@ -233,6 +233,7 @@ void EndCall(void) { Indent(1); EndTag("call"); NewLine(); + gzflush(g_gzFile, Z_SYNC_FLUSH); } void BeginArg(const char *type, const char *name) { -- 2.45.2