From 3943142b86f3ff93c98750a5eba5f95dadc25f06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Fri, 19 Nov 2021 11:13:32 +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 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kiri-engine/FileListen/Inotify.php b/kiri-engine/FileListen/Inotify.php index 8f8d1676..933ea365 100644 --- a/kiri-engine/FileListen/Inotify.php +++ b/kiri-engine/FileListen/Inotify.php @@ -63,6 +63,8 @@ class Inotify if (!($events = inotify_read($this->inotify))) { return; } + + var_dump($this->process->isReloading); if ($this->process->isReloading) { if (!$this->process->isReloadingOut) { $this->process->isReloadingOut = true; @@ -97,6 +99,8 @@ class Inotify $this->process->isReloading = true; $this->process->trigger_reload(); + var_dump('trigger_reload'); + $this->clearWatch(); foreach ($this->dirs as $root) { $this->watch($root);