From 4862e7e913261f7a055fdccd2b895393ff3f8c40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Fri, 19 Nov 2021 14:49:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kiri-engine/FileListen/Inotify.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/kiri-engine/FileListen/Inotify.php b/kiri-engine/FileListen/Inotify.php index 88652241..5ed4c275 100644 --- a/kiri-engine/FileListen/Inotify.php +++ b/kiri-engine/FileListen/Inotify.php @@ -47,9 +47,6 @@ class Inotify public function clear() { Event::del($this->inotify); - - var_dump('clear event'); - Event::exit(); } @@ -76,10 +73,7 @@ class Inotify } //非重启类型 if (str_ends_with($ev['name'], '.php')) { - if ($this->process->int !== -1) { - return; - } - usleep(2000); + sleep(2); $this->reload(); } }