From 29a05f56d579e6845db6b90cab4acff47ab0dd22 Mon Sep 17 00:00:00 2001 From: Glenn L McGrath Date: Sat, 30 Aug 2003 04:47:36 +0000 Subject: [PATCH] "Without this patch, udhcpcd output may be buffered and delayed for for minutes if stdout is not a tty." -vda@ --- networking/udhcp/common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/networking/udhcp/common.c b/networking/udhcp/common.c index c01cd5765..ab4fa305a 100644 --- a/networking/udhcp/common.c +++ b/networking/udhcp/common.c @@ -46,6 +46,7 @@ void udhcp_logging(int level, const char *fmt, ...) if(!daemonized) { vprintf(fmt, p); putchar('\n'); + fflush(stdout); errno = e; } vsyslog(level, fmt, p2); @@ -81,6 +82,7 @@ void udhcp_logging(int level, const char *fmt, ...) errno = e; vprintf(fmt, p); putchar('\n'); + fflush(stdout); } va_end(p); } -- 2.25.1