"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:
parent
9b04f1841e
commit
29a05f56d5
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user