忽略 pid监听
This commit is contained in:
parent
a0137807f3
commit
97bdcb644c
@ -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) &&
|
||||
|
Loading…
Reference in New Issue
Block a user