]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 2434] Line-buffer (v. block-buffer) stdout
authorHarlan Stenn <stenn@ntp.org>
Mon, 22 Jul 2013 10:39:38 +0000 (06:39 -0400)
committerHarlan Stenn <stenn@ntp.org>
Mon, 22 Jul 2013 10:39:38 +0000 (06:39 -0400)
bk: 51ed0beaBezLWTnFkkykueNcxKsbUw

ChangeLog
ntpd/ntpd.c

index e79a4d10eefc12922f339509f1349f2c88f193dc..d958cf336af8fe1bddb43481128f135a15e21228 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 * [Bug 2368] Correct bug in previous attempt.
 * [Bug 2413] Fix "make check" with automake >= 1.13.
+* [Bug 2434] Line-buffer (v. block-buffer) stdout.
 (4.2.7p374) 2013/07/21 Released by Harlan Stenn <stenn@ntp.org>
 * [Bug 2368] make check troubles in libevent.
 * [Bug 2425] setup SIGIO/SIGPOLL for asyncio on the read side
index 3df606d4e6972bdc578ee8d05ef50071c3c6f92b..12ddb126aac2f2773461917671f211c4d1714022 100644 (file)
@@ -450,6 +450,9 @@ ntpdmain(
        parse_cmdline_opts(&argc, &argv);
 # ifdef DEBUG
        debug = OPT_VALUE_SET_DEBUG_LEVEL;
+#  ifdef HAVE_SETLINEBUF
+       setlinebuf(stdout);
+#  endif
 # endif
 
        if (HAVE_OPT(NOFORK) || HAVE_OPT(QUIT)