[Toybox] [PATCH] Better tail -f error checking.

enh enh at google.com
Mon Dec 21 13:24:37 PST 2015


Check for fatal errors, and exit immediately if we don't actually have
anything to -f --- something like "tail -f /does/not/exist" should exit:
it's -f's big brother -F that retries by name rather than by fd.
---
 toys/posix/tail.c | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)


-- 
Elliott Hughes - http://who/enh - http://jessies.org/~enh/
Android native code/tools questions? Mail me/drop by/add me as a reviewer.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Better-tail-f-error-checking.patch
Type: text/x-patch
Size: 1817 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20151221/8d4122c2/attachment-0002.bin>


More information about the Toybox mailing list