summaryrefslogtreecommitdiff
path: root/vendor/github.com/nxadm/tail/tail.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-01-19 07:24:29 -0500
committerGitHub <noreply@github.com>2021-01-19 07:24:29 -0500
commit9a10f20bc1a8733f2a4025d4a1bca45aa31db0d7 (patch)
tree3d74e9e81d7016f0d51674557673e09c8ab41026 /vendor/github.com/nxadm/tail/tail.go
parent5f1a7a7d27824a0708760ae8f964b19caef18f3d (diff)
parentde05e5816869073600ae8e851093b4b9a9d7fab0 (diff)
downloadpodman-9a10f20bc1a8733f2a4025d4a1bca45aa31db0d7.tar.gz
podman-9a10f20bc1a8733f2a4025d4a1bca45aa31db0d7.tar.bz2
podman-9a10f20bc1a8733f2a4025d4a1bca45aa31db0d7.zip
Merge pull request #9001 from vrothberg/ginkgo
ginkgo: install on demand via `go get -u`
Diffstat (limited to 'vendor/github.com/nxadm/tail/tail.go')
-rw-r--r--vendor/github.com/nxadm/tail/tail.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/vendor/github.com/nxadm/tail/tail.go b/vendor/github.com/nxadm/tail/tail.go
index 58d3c4b95..7fbba8d33 100644
--- a/vendor/github.com/nxadm/tail/tail.go
+++ b/vendor/github.com/nxadm/tail/tail.go
@@ -435,6 +435,7 @@ func (tail *Tail) sendLine(line string) bool {
// Cleanup removes inotify watches added by the tail package. This function is
// meant to be invoked from a process's exit handler. Linux kernel may not
// automatically remove inotify watches after the process exits.
+// If you plan to re-read a file, don't call Cleanup in between.
func (tail *Tail) Cleanup() {
watch.Cleanup(tail.Filename)
}