LogBackend: force-flush stderr on WIN32

setvbuf() does not seem to have an effect on Windows.
This commit is contained in:
Max Kellermann 2014-12-17 18:08:09 +01:00
parent 90709b332a
commit c5720a15c7

View File

@ -194,6 +194,12 @@ FileLog(const Domain &domain, const char *message)
domain.GetName(),
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
g_free(converted);
#endif