Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inotify tail doesn't work when a file is quickly recreated #21

Open
sigmonsays opened this issue Dec 1, 2013 · 6 comments
Open

Inotify tail doesn't work when a file is quickly recreated #21

sigmonsays opened this issue Dec 1, 2013 · 6 comments
Labels

Comments

@sigmonsays
Copy link

Inotify tail doesn't seem to properly work for files that are created and deleted quickly.

Using:
36ba8bc github.com/ActiveState/tail (heads/master)

Using the tailing config:

o := tail.Config{
    Location: s,
    // Poll: true,
    ReOpen: true,
    Follow: true,
    MustExist: false,
}
@sigmonsays
Copy link
Author

a workaround is to set Poll and everything works as expected.

@dpogorzelski
Copy link

I have the same problem.

@srid srid added the bug label Feb 19, 2014
@srid srid changed the title Inotify tail doesn't work when a file is deleted and reappears Inotify tail doesn't work when a file is quick recreated Apr 25, 2014
@srid srid changed the title Inotify tail doesn't work when a file is quick recreated Inotify tail doesn't work when a file is quickly recreated Apr 25, 2014
@heatxsink
Copy link

I am also experiencing the same problem.

@srid
Copy link
Contributor

srid commented Jul 3, 2015

Could you try again with latest master?

@brapse
Copy link

brapse commented Dec 18, 2015

Experiencing this as well with 157f8ef

@li-ang
Copy link

li-ang commented Jan 4, 2016

I have the same experience, setting Poll: true could solve the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants