Compare commits

..

1 Commits

Author SHA1 Message Date
as2252258 858b9bc9f9 eee 2024-04-24 14:31:06 +08:00
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -109,7 +109,7 @@ trait TraitServer
*/
private function onPcntlSignal($signal, $callback): void
{
pcntl_signal($signal, $callback);
\pcntl_signal($signal, $callback);
}
+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;
}