From: José Fonseca Date: Thu, 23 Apr 2009 14:23:49 +0000 (+0100) Subject: Flush to ensure the file is in readable state if the process dies. X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=77b5fe25effa0587ee36a24bc8559db2150ce6e9;p=apitrace Flush to ensure the file is in readable state if the process dies. --- 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) {