aboutsummaryrefslogtreecommitdiffstats
path: root/src/LogInit.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-12-17 19:27:59 +0100
committerMax Kellermann <max@duempel.org>2014-12-17 19:27:59 +0100
commit8400da9934df3e61f0dc792c7f9ce311b0103b39 (patch)
tree0e769e89fed8f2e3c1bd80e9623d6bad8aa82dc6 /src/LogInit.cxx
parentae8bdd473c0481d2685dbdee4bd2df73c4199250 (diff)
parent6d89020f80290b3eec97abbe25cc5d52fbd7b5cf (diff)
downloadmpd-8400da9934df3e61f0dc792c7f9ce311b0103b39.tar.gz
mpd-8400da9934df3e61f0dc792c7f9ce311b0103b39.tar.xz
mpd-8400da9934df3e61f0dc792c7f9ce311b0103b39.zip
Merge tag 'v0.19.7'
Diffstat (limited to 'src/LogInit.cxx')
-rw-r--r--src/LogInit.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/LogInit.cxx b/src/LogInit.cxx
index accd1d4d8..117c6d8dc 100644
--- a/src/LogInit.cxx
+++ b/src/LogInit.cxx
@@ -111,6 +111,9 @@ log_early_init(bool verbose)
#ifdef ANDROID
(void)verbose;
#else
+ /* force stderr to be line-buffered */
+ setvbuf(stderr, nullptr, _IOLBF, 0);
+
if (verbose)
SetLogThreshold(LogLevel::DEBUG);
#endif