忽略 pid监听

master
dengsgo 2019-12-24 11:27:38 +08:00
parent a0137807f3
commit 97bdcb644c
1 changed files with 3 additions and 0 deletions

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