Skip to content

ensure the watcher has started before we read#116

Open
phemmer wants to merge 1 commit into
hpcloud:masterfrom
phemmer:watch-before-read
Open

ensure the watcher has started before we read#116
phemmer wants to merge 1 commit into
hpcloud:masterfrom
phemmer:watch-before-read

Conversation

@phemmer

@phemmer phemmer commented Mar 29, 2017

Copy link
Copy Markdown

...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.

...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.
@phemmer

phemmer commented Mar 6, 2018

Copy link
Copy Markdown
Author

Incorporated change from influxdata#4

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.

1 participant