From 526256302d5dfff285ac37878a41e5d6dc92f182 Mon Sep 17 00:00:00 2001 From: xl Date: Wed, 4 Sep 2024 10:14:31 +0800 Subject: [PATCH] eee --- kiri-actor/ActorProcess.php | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/kiri-actor/ActorProcess.php b/kiri-actor/ActorProcess.php index 85642e9d..67527df3 100644 --- a/kiri-actor/ActorProcess.php +++ b/kiri-actor/ActorProcess.php @@ -39,17 +39,9 @@ class ActorProcess extends AbstractProcess /** - * @return $this + * @return void */ - public function onSigterm(): static + public function onSigterm(): void { - // TODO: Implement onSigterm() method. - Coroutine::create(function () { - $sign = Coroutine::waitSignal(SIGINT | SIGTERM); - if ($sign) { - $this->onShutdown(true); - } - }); - return $this; } } \ No newline at end of file