From 9782147a47e65dbba53361cdf07866de5f688311 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Fri, 14 Jan 2022 11:39:52 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=E6=94=B9=E5=90=8D"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit fdf58326 --- kiri-engine/FileListen/HotReload.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kiri-engine/FileListen/HotReload.php b/kiri-engine/FileListen/HotReload.php index 1415b81b..49a9802e 100644 --- a/kiri-engine/FileListen/HotReload.php +++ b/kiri-engine/FileListen/HotReload.php @@ -211,11 +211,13 @@ class HotReload extends Command Process::kill($pid, SIGUSR1); } } else { + $this->int = 1; $this->stopServer(); $this->process = new Process(function (Process $process) { $process->exec(PHP_BINARY, [APP_PATH . "kiri.php", "sw:server", "start"]); }); $this->process->start(); + $this->int = -1; } }