From 6db849de8d70d3c23ecb51b5b340bbc67688f50c Mon Sep 17 00:00:00 2001 From: Administrator Date: Fri, 5 Nov 2021 01:10:42 +0800 Subject: [PATCH] 111 --- kiri-engine/FileListen/FileChangeCustomProcess.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/kiri-engine/FileListen/FileChangeCustomProcess.php b/kiri-engine/FileListen/FileChangeCustomProcess.php index 0c185508..278adc31 100644 --- a/kiri-engine/FileListen/FileChangeCustomProcess.php +++ b/kiri-engine/FileListen/FileChangeCustomProcess.php @@ -105,18 +105,9 @@ class FileChangeCustomProcess extends Command @unlink(storage('.swoole.pid')); } Coroutine::create(function () { - if (!$this->channel) { - $this->channel = new Coroutine\Channel(1); - $this->channel->push(true); - } - $this->channel->pop(); - $descriptorspec = [0 => STDIN, 1 => STDOUT, 2 => STDERR]; proc_open("php " . APP_PATH . "kiri.php", $descriptorspec, $pipes); - var_dump($pipes); - - $this->channel->push(1); }); }