From 79544f1ad191427f8cb6b688c8a4ad8ca684dedd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Fri, 5 Nov 2021 14:38:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../FileListen/FileChangeCustomProcess.php | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/kiri-engine/FileListen/FileChangeCustomProcess.php b/kiri-engine/FileListen/FileChangeCustomProcess.php index b3365a18..59004920 100644 --- a/kiri-engine/FileListen/FileChangeCustomProcess.php +++ b/kiri-engine/FileListen/FileChangeCustomProcess.php @@ -69,13 +69,6 @@ class FileChangeCustomProcess extends Command $this->trigger_reload(); Coroutine::create(function () use ($driver) { -// Coroutine::create(function () use ($driver) { -// $waite = Coroutine::waitSignal(SIGTERM | SIGKILL); -// if ($waite) { -// $driver->clear(); -// $this->stop($driver); -// } -// }); $driver->start(); }); return 0; @@ -87,18 +80,9 @@ class FileChangeCustomProcess extends Command */ private function stop(): void { -// if (!file_exists(storage('.swoole.pid'))) { -// return; -// } -// $content = (int)file_get_contents(storage('.swoole.pid')); -// if ($content > 0 && Process::kill($content, 0)) { -// Process::kill($content, 15); -// } -// @unlink(storage('.swoole.pid')); if (is_resource($this->source)) { proc_terminate($this->source); while (proc_get_status($this->source)['running']) { - var_dump(proc_get_status($this->source)); Coroutine::sleep(1); } proc_close($this->source);