Commit c5720a15 authored by Max Kellermann's avatar Max Kellermann

LogBackend: force-flush stderr on WIN32

setvbuf() does not seem to have an effect on Windows.
parent 90709b33
...@@ -194,6 +194,12 @@ FileLog(const Domain &domain, const char *message) ...@@ -194,6 +194,12 @@ FileLog(const Domain &domain, const char *message)
domain.GetName(), domain.GetName(),
chomp_length(message), message); chomp_length(message), message);
#ifdef WIN32
/* force-flush the log file, because setvbuf() does not seem
to have an effect on WIN32 */
fflush(stderr);
#endif
#ifdef HAVE_GLIB #ifdef HAVE_GLIB
g_free(converted); g_free(converted);
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment