From 97bdcb644ca5cef8e0db6b8f4995eb0d59f478ab Mon Sep 17 00:00:00 2001 From: dengsgo Date: Tue, 24 Dec 2019 11:27:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BF=BD=E7=95=A5=20pid=E7=9B=91=E5=90=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fileboy.go | 3 +++ 1 file changed, 3 insertions(+) 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) &&