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
|
||||
}
|
||||
|
||||
// Cleanup removes open inotify watchers, because the Linux kernel does do so
|
||||
// upon process exit.
|
||||
// Cleanup removes inotify watches added by the tail package. This function is
|
||||
// meant to be invoked from a process's exit handler. Linux kernel will not
|
||||
// automatically remove inotify watches after the process exits.
|
||||
func Cleanup() {
|
||||
watch.Cleanup()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue