From 35ea526420d6d58c98be0710f0ec52f8026a211d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Thu, 4 Nov 2021 18:16:34 +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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kiri-engine/FileListen/FileChangeCustomProcess.php b/kiri-engine/FileListen/FileChangeCustomProcess.php index 5b1637b7..127d5edb 100644 --- a/kiri-engine/FileListen/FileChangeCustomProcess.php +++ b/kiri-engine/FileListen/FileChangeCustomProcess.php @@ -112,7 +112,9 @@ class FileChangeCustomProcess extends Command if (is_resource($this->source)) { fwrite($this->source, "php " . APP_PATH . "kiri.php sw:server restart"); } else { - $this->source = proc_open("php " . APP_PATH . "kiri.php sw:server restart", [], $this->pipes); + $this->source = proc_open("php " . APP_PATH . "kiri.php sw:server restart", [ + STDIN, STDOUT + ], $this->pipes); var_dump($this->pipes); }