From 7e66be08abf964cb34c7397ae8a8d5034172a49c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E5=A8=81?= Date: Thu, 16 May 2019 14:39:04 +0800 Subject: [PATCH] =?UTF-8?q?Update=20MESA=5Fhandle=5Flogger.c,=20=E6=AF=8F?= =?UTF-8?q?=E6=AC=A1fprintf=E6=88=90=E5=8A=9F=E5=90=8Efflush=E5=8F=A5?= =?UTF-8?q?=E6=9F=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MESA_handle_logger.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/MESA_handle_logger.c b/src/MESA_handle_logger.c index c9cc54b..b12e193 100644 --- a/src/MESA_handle_logger.c +++ b/src/MESA_handle_logger.c @@ -212,6 +212,10 @@ void MESA_handle_runtime_log(void *handle, int level, const char *module, const fclose(p_handle->fp); p_handle->fp = NULL; } + else + { + fflush(p_handle->fp); + } return; }