This commit is contained in:
2021-11-19 03:48:54 +08:00
parent 1c18ee94ee
commit c5bfe8110a
+1 -4
View File
@@ -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();
});