From 0a76e991b9b8651b3ab04aa46de973abe9aad2ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Thu, 4 Nov 2021 18:24:42 +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 | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/kiri-engine/FileListen/FileChangeCustomProcess.php b/kiri-engine/FileListen/FileChangeCustomProcess.php index 5ff0fbe7..19f660f4 100644 --- a/kiri-engine/FileListen/FileChangeCustomProcess.php +++ b/kiri-engine/FileListen/FileChangeCustomProcess.php @@ -70,7 +70,6 @@ class FileChangeCustomProcess extends Command 0 => ["pipe", "r"], // 标准输入,子进程从此管道中读取数据 ] , $this->pipes); - var_dump($this->source, $this->pipes); }); go(function () { $sign = Coroutine::waitSignal(SIGTERM, -1); @@ -110,11 +109,11 @@ class FileChangeCustomProcess extends Command { Kiri::getDi()->get(Logger::class)->warning('change reload'); - $this->source = proc_open("php " . APP_PATH . "kiri.php sw:server restart", [ - STDIN, STDOUT - ], $this->pipes); - +// $this->source = proc_open("php " . APP_PATH . "kiri.php sw:server restart", [ +// STDIN, STDOUT +// ], $this->pipes); + fwrite($this->pipes[0], "php " . APP_PATH . "kiri.php sw:server restart"); } }