"Without this patch, udhcpcd output may be buffered and delayed for

for minutes if stdout is not a tty." -vda@
This commit is contained in:
Glenn L McGrath 2003-08-30 04:47:36 +00:00
parent 9b04f1841e
commit 29a05f56d5

View File

@ -46,6 +46,7 @@ void udhcp_logging(int level, const char *fmt, ...)
if(!daemonized) { if(!daemonized) {
vprintf(fmt, p); vprintf(fmt, p);
putchar('\n'); putchar('\n');
fflush(stdout);
errno = e; errno = e;
} }
vsyslog(level, fmt, p2); vsyslog(level, fmt, p2);
@ -81,6 +82,7 @@ void udhcp_logging(int level, const char *fmt, ...)
errno = e; errno = e;
vprintf(fmt, p); vprintf(fmt, p);
putchar('\n'); putchar('\n');
fflush(stdout);
} }
va_end(p); va_end(p);
} }