tail: -F now always processes initially untailable files
commitf04daf570b91286d47a80074cf4a6a63c4309dc0
authorPádraig Brady <P@draigBrady.com>
Wed, 21 Sep 2016 17:42:40 +0000 (21 18:42 +0100)
committerPádraig Brady <P@draigBrady.com>
Wed, 28 Sep 2016 22:40:47 +0000 (28 23:40 +0100)
tree946f0975a979c05c523d5f21328116dee506162f
parenteb406b2caf4d6307d7f86f38da4d6029a6b83961
tail: -F now always processes initially untailable files

which was not the case when inotify was not available.

* src/tail.c (any_live_files): Simplify, since the IGNORE
flag is now only set when a file should be ignored indefinitely.
(recheck): Only output the "giving up on name" message
when that's actually the case.  Only set the IGNORE flag
when ignoring a file indefinitely.
(tail_file): Likewise.
* tests/tail-2/retry.sh: Add a test case.  Also run
all existing test cases with and without inotify.
NEWS: Mention the fix.
THANKS.in: Add the reporter.
Fixes http://bugs.gnu.org/24495 which was detected
using Symbolic Execution techniques developed in
the course of the SYMBIOSYS research project at
COMSYS, RWTH Aachen University.
NEWS
THANKS.in
src/tail.c
tests/tail-2/retry.sh