eee
This commit is contained in:
@@ -109,7 +109,7 @@ trait TraitServer
|
|||||||
*/
|
*/
|
||||||
private function onPcntlSignal($signal, $callback): void
|
private function onPcntlSignal($signal, $callback): void
|
||||||
{
|
{
|
||||||
pcntl_signal($signal, $callback);
|
\pcntl_signal($signal, $callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -63,7 +63,7 @@ class HotReload extends BaseProcess
|
|||||||
if (Context::inCoroutine()) {
|
if (Context::inCoroutine()) {
|
||||||
Coroutine::create(fn() => $this->onShutdown(Coroutine::waitSignal(SIGTERM | SIGINT)));
|
Coroutine::create(fn() => $this->onShutdown(Coroutine::waitSignal(SIGTERM | SIGINT)));
|
||||||
} else {
|
} else {
|
||||||
pcntl_signal(SIGTERM, [$this, 'onStop']);
|
\pcntl_signal(SIGTERM, [$this, 'onStop']);
|
||||||
}
|
}
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user