tail: always fail when followed files become inaccessible
commit8b9fa9d0742d4a2070716d098bad489dad2d9bb9
authorPádraig Brady <P@draigBrady.com>
Fri, 20 Dec 2024 14:28:11 +0000 (20 14:28 +0000)
committerPádraig Brady <P@draigBrady.com>
Sat, 21 Dec 2024 12:10:04 +0000 (21 12:10 +0000)
tree902b9e448738c43fe53a5849d31cc554ae01b0a8
parentc8bb7afcfb779f6bf582710babb08a07f0418278
tail: always fail when followed files become inaccessible

* src/tail.c (tail_forever): Without --retry, exit with failure
status like we do for the inotify case (since v8.11-15-g61de57cd2).
This is also consistent with the failure exit if no file was
accessible at tail startup.
* tests/tail/follow-stdin.sh: Tweak due to earlier exit.
* tests/tail/follow-name.sh: Test with and without inotify.
* NEWS: Mention the bug fix.
NEWS
src/tail.c
tests/tail/follow-name.sh
tests/tail/follow-stdin.sh