descriptive comment for the Cleanup function
This commit is contained in:
parent
6ffcd854c1
commit
accbe0dc99
5
tail.go
5
tail.go
|
@ -306,8 +306,9 @@ func (tail *Tail) sendLine(line []byte) bool {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
// Cleanup removes open inotify watchers, because the Linux kernel does do so
|
// Cleanup removes inotify watches added by the tail package. This function is
|
||||||
// upon process exit.
|
// meant to be invoked from a process's exit handler. Linux kernel will not
|
||||||
|
// automatically remove inotify watches after the process exits.
|
||||||
func Cleanup() {
|
func Cleanup() {
|
||||||
watch.Cleanup()
|
watch.Cleanup()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue