diff --git a/tail.go b/tail.go index 365164f..61a8cd2 100644 --- a/tail.go +++ b/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() }