diff --git a/fileboy.go b/fileboy.go index e2be1b2..3ee5723 100644 --- a/fileboy.go +++ b/fileboy.go @@ -76,6 +76,9 @@ func parseConfig() { } func eventDispatcher(event fsnotify.Event) { + if event.Name == getPidFile() { + return + } ext := path.Ext(event.Name) if len(cfg.Monitor.Types) > 0 && !keyInMonitorTypesMap(".*", cfg) &&