From f49af928b63c101edc6fd5b8a158c9ba86ec8ef9 Mon Sep 17 00:00:00 2001 From: Administrator Date: Fri, 5 Nov 2021 00:40:53 +0800 Subject: [PATCH] 111 --- kiri-engine/FileListen/FileChangeCustomProcess.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/kiri-engine/FileListen/FileChangeCustomProcess.php b/kiri-engine/FileListen/FileChangeCustomProcess.php index 19ef9aee..672e2aad 100644 --- a/kiri-engine/FileListen/FileChangeCustomProcess.php +++ b/kiri-engine/FileListen/FileChangeCustomProcess.php @@ -102,7 +102,14 @@ class FileChangeCustomProcess extends Command } $this->channel->pop(); - shell_exec("php " . APP_PATH . "kiri.php"); + + $descriptorspec = [ + 0 => STDIN, + 1 => STDOUT, + 2 => STDERR, + ]; + + proc_open("php " . APP_PATH . "kiri.php", $descriptorspec, $pipes); $this->channel->push(1); });