aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2003-08-30 04:47:36 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2003-08-30 04:47:36 +0000
commit29a05f56d579e6845db6b90cab4acff47ab0dd22 (patch)
tree1a7e28dee2ee346f98604ff9b8baa078f0f0748f
parent9b04f1841eb4ef9b88e525796cd7230f6c3c1c6e (diff)
downloadbusybox-29a05f56d579e6845db6b90cab4acff47ab0dd22.tar.gz
"Without this patch, udhcpcd output may be buffered and delayed for
for minutes if stdout is not a tty." -vda@
-rw-r--r--networking/udhcp/common.c2
1 files changed, 2 insertions, 0 deletions
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);
}