From 84e8d263719bb9b4633ca5d8a6093bbf89629fe2 Mon Sep 17 00:00:00 2001 From: Administrator Date: Fri, 5 Nov 2021 00:38:26 +0800 Subject: [PATCH] 111 --- kiri-engine/FileListen/FileChangeCustomProcess.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/kiri-engine/FileListen/FileChangeCustomProcess.php b/kiri-engine/FileListen/FileChangeCustomProcess.php index abc93a31..bcf40fc3 100644 --- a/kiri-engine/FileListen/FileChangeCustomProcess.php +++ b/kiri-engine/FileListen/FileChangeCustomProcess.php @@ -95,11 +95,6 @@ class FileChangeCustomProcess extends Command public function trigger_reload() { Kiri::getDi()->get(Logger::class)->warning('change reload'); - - $content = (int)file_get_contents(storage('.swoole.pid')); - if (!empty($content) && Process::kill($content, 0)) { - proc_open("php " . APP_PATH . "kiri.php sw:server stop", [], $pipes); - } Coroutine::create(function () { if (!$this->channel) { $this->channel = new Coroutine\Channel(1);