[BusyBox] [PATCH] fflush logging output
vda at port.imtp.ilyichevsk.odessa.ua
vda at port.imtp.ilyichevsk.odessa.ua
Sun Aug 24 00:09:27 UTC 2003
Without this patch, udhcpcd output may be buffered
and delayed for minutes if stdout is not a tty.
--
vda
--- busybox-1.00-pre2/networking/udhcp/common.c.orig Sun Aug 24 03:04:19 2003
+++ busybox-1.00-pre2/networking/udhcp/common.c Sun Aug 24 03:03:56 2003
@@ -46,6 +46,7 @@
if(!daemonized) {
vprintf(fmt, p);
putchar('\n');
+ fflush(stdout);
errno = e;
}
vsyslog(level, fmt, p2);
@@ -81,6 +82,7 @@
errno = e;
vprintf(fmt, p);
putchar('\n');
+ fflush(stdout);
}
va_end(p);
}
More information about the busybox
mailing list