From ad568fa3a7c5f2ddcdb4ac9587c65bf7004d6b6a Mon Sep 17 00:00:00 2001 From: Administrator Date: Fri, 5 Nov 2021 00:36:34 +0800 Subject: [PATCH] 111 --- kiri-engine/FileListen/FileChangeCustomProcess.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kiri-engine/FileListen/FileChangeCustomProcess.php b/kiri-engine/FileListen/FileChangeCustomProcess.php index 633b9191..f2673229 100644 --- a/kiri-engine/FileListen/FileChangeCustomProcess.php +++ b/kiri-engine/FileListen/FileChangeCustomProcess.php @@ -97,7 +97,7 @@ class FileChangeCustomProcess extends Command $content = (int)file_get_contents(storage('.swoole.pid')); if (!empty($content) && Process::kill($content, 0)) { - Process::kill($content, SIGTERM); + proc_open("php " . APP_PATH . "kiri.php sw:server stop", [], $pipes); } Coroutine::create(function () { if (!$this->channel) {