From 84e299813989d26064bcf8ba21c56f07bb2eb98e Mon Sep 17 00:00:00 2001 From: Administrator Date: Fri, 5 Nov 2021 00:14:54 +0800 Subject: [PATCH] 111 --- kiri-engine/FileListen/FileChangeCustomProcess.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/kiri-engine/FileListen/FileChangeCustomProcess.php b/kiri-engine/FileListen/FileChangeCustomProcess.php index 7b177342..7b1a4401 100644 --- a/kiri-engine/FileListen/FileChangeCustomProcess.php +++ b/kiri-engine/FileListen/FileChangeCustomProcess.php @@ -104,9 +104,6 @@ class FileChangeCustomProcess extends Command $content = (int)file_get_contents(storage('.swoole.pid')); if (!empty($content) && Process::kill($content, 0)) { Process::kill($content, SIGTERM); - while (Process::kill($content,0)) { - Coroutine::sleep(0.01); - } } proc_open("php " . APP_PATH . "kiri.php", [], $pipes); }