[Toybox] [PATCH] tail: implement -F (and its companion -s).

enh enh at google.com
Wed Jun 30 16:57:43 PDT 2021

(Based on someone else's patch.)

Implementing -F with inotify is a lot more work (including more
portability shims for macOS), so this is a simpler polling

Also fix my earlier mistake where xnotify_add() wasn't actually an 'x'
function that exits on failure.
 lib/portability.c |   4 +-
 toys/posix/tail.c | 117 +++++++++++++++++++++++++++++++++++++---------
 2 files changed, 96 insertions(+), 25 deletions(-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20210630/81669684/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-tail-implement-F-and-its-companion-s.patch
Type: text/x-patch
Size: 6066 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20210630/81669684/attachment.bin>

More information about the Toybox mailing list