From eddf591d64cbd53e6148836a2c6e2af41df35682 Mon Sep 17 00:00:00 2001 From: marktwtn Date: Thu, 25 Jul 2019 13:33:53 +0800 Subject: [PATCH] fix: Flush the debug messages To make the redirection of the debug messages succeed. Close #175. --- src/common.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common.h b/src/common.h index f7dd479..4e18e82 100644 --- a/src/common.h +++ b/src/common.h @@ -27,6 +27,7 @@ static inline void ddprintf(const char *format, ...) va_start(ap, format); vprintf(format, ap); va_end(ap); + fflush(stdout); #endif }