From 611ae77bedf101843151b3d46ec2090586edfaf8 Mon Sep 17 00:00:00 2001 From: xl Date: Mon, 10 Jul 2023 02:22:38 +0800 Subject: [PATCH] qqq --- HotReload.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/HotReload.php b/HotReload.php index 861a38d..5f3c30c 100644 --- a/HotReload.php +++ b/HotReload.php @@ -97,11 +97,12 @@ class HotReload extends BaseProcess Event::add($init, fn() => $this->check($init)); Event::cycle(function () use ($init) { $pid = (int)file_get_contents(storage('.swoole.pid')); + var_dump($this->isStop()); if ($pid <= 0 || !Process::kill($pid, 0) || $this->isStop()) { Event::del($init); } }, true); -// Event::wait(); + Event::wait(); }