minor clarification in the Cleanup comment
we are not totally sure if this is an issue in every distro/kernel/environment.
This commit is contained in:
parent
36ba8bccb9
commit
be2914fd12
2
tail.go
2
tail.go
|
@ -312,7 +312,7 @@ func (tail *Tail) sendLine(line []byte) 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 will not
|
||||
// meant to be invoked from a process's exit handler. Linux kernel may not
|
||||
// automatically remove inotify watches after the process exits.
|
||||
func Cleanup() {
|
||||
watch.Cleanup()
|
||||
|
|
Loading…
Reference in New Issue