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

ensure the watcher has started before we read #2

Merged
merged 1 commit into from
Mar 29, 2017
Merged

ensure the watcher has started before we read #2

merged 1 commit into from
Mar 29, 2017

Conversation

phemmer
Copy link

@phemmer phemmer commented Mar 29, 2017

...otherwise we can run into the scenario where: On start we read the contents of the file, we hit EOF, and start watching for changes. But in between the EOF and start watching, the file is updated. But since the watcher wasn't started, we don't notice.

Ref hpcloud#116

...otherwise we can run into the scenario where: On start we read the contents of the file, we hit EOF, and start watching for changes. But in between the EOF and start watching, the file is updated. But since the watcher wasn't started, we don't notice.
@danielnelson danielnelson merged commit 517cb79 into influxdata:master Mar 29, 2017
dayvar14 pushed a commit to dayvar14/tail that referenced this pull request Feb 21, 2024
...otherwise we can run into the scenario where: On start we read the contents of the file, we hit EOF, and start watching for changes. But in between the EOF and start watching, the file is updated. But since the watcher wasn't started, we don't notice.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants