mirror of
https://github.com/sheumann/hush.git
synced 2024-11-05 21:04:56 +00:00
"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) {
|
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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user