From 6ef0f8b4127cb2fcc6e22f4823cfd422b1506538 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Thu, 4 Nov 2021 18:46:57 +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/FileChangeCustomProcess.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/kiri-engine/FileListen/FileChangeCustomProcess.php b/kiri-engine/FileListen/FileChangeCustomProcess.php index 50e10c05..699d90c9 100644 --- a/kiri-engine/FileListen/FileChangeCustomProcess.php +++ b/kiri-engine/FileListen/FileChangeCustomProcess.php @@ -73,7 +73,7 @@ class FileChangeCustomProcess extends Command } }); go(function () use ($driver) { - $this->source = proc_open('php ' . APP_PATH . 'kiri.php sw:server restart', [], $this->pipes); + $this->source = proc_open('php ' . APP_PATH . 'kiri.php', null, $this->pipes); $driver->start(Coroutine::getCid()); }); @@ -110,15 +110,14 @@ class FileChangeCustomProcess extends Command $content = file_get_contents(storage('.swoole.pid')); if (!empty($content)) { - var_dump($content); Process::kill((int)$content, 15); - var_dump($content); + var_dump($content, $this->pipes); proc_close($this->source); } - $this->source = proc_open("php " . APP_PATH . "kiri.php sw:server restart", [], $this->pipes); + $this->source = proc_open("php " . APP_PATH . "kiri.php", null, $this->pipes); } }