summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/common.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common.c b/src/common.c
index d31c558..c7be4f6 100644
--- a/src/common.c
+++ b/src/common.c
@@ -97,6 +97,7 @@ void info(const char* format, ...)
va_start(vargs, format);
vfprintf((info_stream) ? info_stream : stdout, format, vargs);
va_end(vargs);
+ fflush(info_stream?info_stream:stdout);
mutex_unlock(&log_mutex);
}
@@ -113,6 +114,7 @@ void error(const char* format, ...)
vfprintf((error_stream) ? error_stream : stderr, format, vargs2);
}
va_end(vargs2);
+ fflush(error_stream?error_stream:stderr);
mutex_unlock(&log_mutex);
}
@@ -128,6 +130,7 @@ void debug(const char* format, ...)
va_start(vargs, format);
vfprintf((debug_stream) ? debug_stream : stderr, format, vargs);
va_end(vargs);
+ fflush(debug_stream?debug_stream:stderr);
mutex_unlock(&log_mutex);
}