From c5bfe8110ae828fdd2c2f2db5634f5f96a145ca6 Mon Sep 17 00:00:00 2001 From: Administrator Date: Fri, 19 Nov 2021 03:48:54 +0800 Subject: [PATCH] 1 --- kiri-engine/FileListen/HotReload.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/kiri-engine/FileListen/HotReload.php b/kiri-engine/FileListen/HotReload.php index f3673ccb..c68afc44 100644 --- a/kiri-engine/FileListen/HotReload.php +++ b/kiri-engine/FileListen/HotReload.php @@ -78,10 +78,7 @@ class HotReload extends Command $this->trigger_reload(); Coroutine::create(function () { Coroutine::create(function () { - $this->onSignal(Coroutine::waitSignal(SIGKILL, -1)); - }); - Coroutine::create(function () { - $this->onSignal(Coroutine::waitSignal(SIGTERM, -1)); + $this->onSignal(Coroutine::waitSignal(SIGKILL & SIGTERM, -1)); }); $this->driver->start(); });