Repository navigation
tail: exit when --follow=name has no files left and no --retry - #16567
Merged
sylvestre merged 3 commits intoNov 18, 2026
Merged
Conversation
gonzalemario
force-pushed
the
dev/fix-tail-follow-name-gnu-test
branch
2 times, most recently
from
November 16, 2026 16:18
66ce907 to
1705ba3
Compare
gonzalemario
marked this pull request as ready for review
November 16, 2026 16:18
|
GNU testsuite comparison: |
Contributor
if you fixed it, maybe remove it from the intermittent list? |
sylvestre
force-pushed
the
dev/fix-tail-follow-name-gnu-test
branch
from
November 17, 2026 10:28
1705ba3 to
27b757b
Compare
gonzalemario
force-pushed
the
dev/fix-tail-follow-name-gnu-test
branch
2 times, most recently
from
November 17, 2026 12:16
fe62ae1 to
b1899e8
Compare
46 of 74 tasks
sylvestre
reviewed
Nov 17, 2026
|
|
||
| #[uutests::wasi_ignore(TailFollowDisabled)] | ||
| #[test] | ||
| #[cfg(all(not(windows), not(target_os = "android")))] // FIXME: for currently not working platforms |
Contributor
There was a problem hiding this comment.
this now also runs the non-polling case on macos/freebsd, where move_create1 is disabled. won't it be flaky there?
Contributor
Author
There was a problem hiding this comment.
good catch, I added the same restriction as the others
sylvestre
force-pushed
the
dev/fix-tail-follow-name-gnu-test
branch
from
November 17, 2026 17:55
b1899e8 to
c18d7c2
Compare
gonzalemario
force-pushed
the
dev/fix-tail-follow-name-gnu-test
branch
from
November 17, 2026 21:39
c18d7c2 to
78b6197
Compare
|
Binary size comparison: |
When the last file followed with --follow=name was removed or renamed, tail printed "No such file or directory" and kept running with nothing left to follow. Without --retry it now exits with "no files remaining", like GNU tail. The remove and rename tests now also cover --retry, where tail keeps running and follows the file again when it comes back.
gonzalemario
force-pushed
the
dev/fix-tail-follow-name-gnu-test
branch
from
November 18, 2026 10:52
78b6197 to
3275840
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When the last file followed with --follow=name was removed or renamed, tail printed "No such file or directory" and kept running with nothing left to follow. Without --retry it now exits with "no files remaining", like GNU tail.
The remove and rename tests now also cover --retry, where tail keeps running and follows the file again when it comes back.