From ea425bb82d3afe1c8f3bf59c19c9c17f588779a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Tue, 30 Nov 2021 18:30:15 +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/HotReload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kiri-engine/FileListen/HotReload.php b/kiri-engine/FileListen/HotReload.php index c4847fc8..afaacfc4 100644 --- a/kiri-engine/FileListen/HotReload.php +++ b/kiri-engine/FileListen/HotReload.php @@ -97,7 +97,7 @@ class HotReload extends Command */ public function healthCheck() { - $pid = file_get_contents(storage('.swoole.pid')); + $pid = (int)file_get_contents(storage('.swoole.pid')); $this->logger->debug('timer ticker.' . Process::kill($pid, 0)); if (!empty($pid) && !Process::kill($pid, 0)) { if ($this->process && Process::kill($this->process->pid, 0)) {