From a1fc45c3d77e67f35a57363bb4187d908201e008 Mon Sep 17 00:00:00 2001 From: Administrator Date: Fri, 5 Nov 2021 01:19:31 +0800 Subject: [PATCH] 111 --- 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 72217dfc..bac25834 100644 --- a/kiri-engine/FileListen/FileChangeCustomProcess.php +++ b/kiri-engine/FileListen/FileChangeCustomProcess.php @@ -102,7 +102,7 @@ class FileChangeCustomProcess extends Command if (file_exists(storage('.swoole.pid'))) { $content = (int)file_get_contents(storage('.swoole.pid')); if ($content > 0 && Process::kill($content,0)){ - var_dump(Process::kill($content,15)); + Process::kill($content,15); } @unlink(storage('.swoole.pid')); } @@ -112,6 +112,8 @@ class FileChangeCustomProcess extends Command $descriptorspec = [0 => STDIN, 1 => STDOUT, 2 => STDERR]; proc_open("php " . APP_PATH . "kiri.php", $descriptorspec, $pipes); + + var_dump($pipes); }); }