You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
tail: -F does not watch the followed file itself, only its directory #16650
tail -F only puts an inotify watch on the parent directory, never on the followed file itself. GNU 9.12 watches the file too, and removes the old watch when the file is rotated.
#16693 adds the per-file watch and removes it after each rotation (the strace -f reproducer above now shows the expected inotify_add_watch/inotify_rm_watch calls). tests/tail/inotify-rotate-resources.sh still fails because notify issues these syscalls from a background thread and the test's strace does not trace threads; details in the PR.
Activity
lmilz commentedon Nov 17, 2026
Hi! I'd like to work on this issue. Is anyone already working on it, or would it be okay if I gave it a try?
tail: watch the followed file itself under inotify
tail: watch the followed file itself under inotify
tail: watch the followed file itself under inotify
tail: watch the followed file itself under inotify
tail: watch the followed file itself under inotify
lmilz commentedon Nov 20, 2026
#16693 adds the per-file watch and removes it after each rotation (the
strace -freproducer above now shows the expectedinotify_add_watch/inotify_rm_watchcalls).tests/tail/inotify-rotate-resources.shstill fails because notify issues these syscalls from a background thread and the test's strace does not trace threads; details in the PR.tail: watch the followed file itself under inotify
tail: watch the followed file itself under inotify
tail: watch the followed file itself under inotify
tail: watch the followed file itself under inotify