[Toybox] [PATCH] logger: fix stdin handling.

enh enh at google.com
Tue Feb 28 13:48:55 PST 2023


Rather than assume it's a single chunk of <= sizeof(toybuf) bytes, read
line by line and log each line as it comes. (This is useful for
redirecting the progress output of slow jobs to the log, and matches
other implementations.)
---
 toys/posix/logger.c | 22 +++++++++++++++-------
 1 file changed, 15 insertions(+), 7 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-logger-fix-stdin-handling.patch
Type: text/x-patch
Size: 2457 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20230228/13814265/attachment.bin>


More information about the Toybox mailing list