From 704c0808ea8ca826a95bd1a28b2de472c1b41942 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Fri, 5 Nov 2021 11:04:24 +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 --- kiri-engine/FileListen/FileChangeCustomProcess.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kiri-engine/FileListen/FileChangeCustomProcess.php b/kiri-engine/FileListen/FileChangeCustomProcess.php index 18010fb5..789dca62 100644 --- a/kiri-engine/FileListen/FileChangeCustomProcess.php +++ b/kiri-engine/FileListen/FileChangeCustomProcess.php @@ -64,6 +64,10 @@ class FileChangeCustomProcess extends Command $driver = Kiri::getDi()->get(Inotify::class, [$this->dirs, $this]); } + if (Kiri::getPlatform()->isLinux()) { + swoole_set_process_name(Config::get('id', 'sw service.')); + } + $this->trigger_reload(); Coroutine::create(function () use ($driver) { Coroutine::create(function () use ($driver) {