This commit is contained in:
2024-04-24 14:31:06 +08:00
parent 4cbd1fb500
commit 858b9bc9f9
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ class HotReload extends BaseProcess
if (Context::inCoroutine()) {
Coroutine::create(fn() => $this->onShutdown(Coroutine::waitSignal(SIGTERM | SIGINT)));
} else {
pcntl_signal(SIGTERM, [$this, 'onStop']);
\pcntl_signal(SIGTERM, [$this, 'onStop']);
}
return $this;
}