From: Harlan Stenn Date: Mon, 22 Jul 2013 10:39:38 +0000 (-0400) Subject: [Bug 2434] Line-buffer (v. block-buffer) stdout X-Git-Tag: NTP_4_2_7P375~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d138740a10d3653c2003fc2c0c63380fb6b22c1;p=thirdparty%2Fntp.git [Bug 2434] Line-buffer (v. block-buffer) stdout bk: 51ed0beaBezLWTnFkkykueNcxKsbUw --- diff --git a/ChangeLog b/ChangeLog index e79a4d10e..d958cf336 100644 --- 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 * [Bug 2368] make check troubles in libevent. * [Bug 2425] setup SIGIO/SIGPOLL for asyncio on the read side diff --git a/ntpd/ntpd.c b/ntpd/ntpd.c index 3df606d4e..12ddb126a 100644 --- a/ntpd/ntpd.c +++ b/ntpd/ntpd.c @@ -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)