Skip to content

tail: --debug always says notification mode and misses the switch to polling #16643

Done

Description

@sylvestre

tail --debug always reports notification mode, and doesn't report the switch to polling.

$ timeout 1 tail --debug -f /dev/null
$ timeout 1 tail --debug -F /dev/null

uutils: tail: using notification mode twice.
GNU 9.12: tail: using blocking mode, then tail: using polling mode.

When the directory of a followed file is removed and recreated:

$ mkdir logs && echo hello > logs/app
$ tail --debug -F -s.1 logs/app &
$ rm -r logs; sleep 1; mkdir logs; touch logs/app

uutils prints tail: using notification mode before hello (GNU prints it after), and never prints tail: using polling mode after tail: inotify cannot be used, reverting to polling.

GNU tests: bash util/build-gnu.sh && bash util/run-gnu-test.sh tests/tail/debug.sh tests/tail/inotify-dir-recreate.sh

Part of #14705

Activity

  1. added a commit that references this issue on Nov 24, 2026
    e47e3e6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions