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); });