hpcloud / tail

Go package for reading from continously updated files (tail -f)
MIT License
2.72k stars 505 forks source link

ensure the watcher has started before we read #116

Open phemmer opened 7 years ago

phemmer commented 7 years ago

...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 commented 6 years ago

Incorporated change from https://github.com/influxdata/tail/pull/4