From dfccb8816c61defacf2ccbfc7ae8e55838daa0ee Mon Sep 17 00:00:00 2001 From: Administrator Date: Sat, 11 Dec 2021 17:32:28 +0800 Subject: [PATCH] 1 --- kiri-engine/FileListen/HotReload.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/kiri-engine/FileListen/HotReload.php b/kiri-engine/FileListen/HotReload.php index 04ae4de4..7f2876c4 100644 --- a/kiri-engine/FileListen/HotReload.php +++ b/kiri-engine/FileListen/HotReload.php @@ -136,9 +136,6 @@ class HotReload extends Command $this->initCore(); $this->trigger_reload(); - if ($input->getOption('daemon') == '--daemon') { - Process::daemon(TRUE, TRUE); - } Timer::tick(1000, fn() => $this->healthCheck()); Process::signal(SIGTERM, [$this, 'onSignal']); @@ -155,7 +152,7 @@ class HotReload extends Command public function healthCheck() { $pid = (int)file_get_contents(storage('.swoole.pid')); - if ($this->driver->isReloading) { + if ($this->int == 1) { return; } if (empty($pid)) {