eee
This commit is contained in:
+2
-2
@@ -39,8 +39,8 @@ class RpcProcess extends BaseProcess
|
||||
if (Context::inCoroutine()) {
|
||||
Coroutine::create(fn() => $this->onShutdown(Coroutine::waitSignal(SIGTERM | SIGINT)));
|
||||
} else {
|
||||
pcntl_signal(SIGTERM, [$this, 'onStop']);
|
||||
pcntl_signal(SIGINT, [$this, 'onStop']);
|
||||
\pcntl_signal(SIGTERM, [$this, 'onStop']);
|
||||
\pcntl_signal(SIGINT, [$this, 'onStop']);
|
||||
}
|
||||
return $this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user