忽略 pid监听

This commit is contained in:
dengsgo 2019-12-24 11:27:38 +08:00
parent a0137807f3
commit 97bdcb644c

View File

@ -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) &&