From 45aa265866363033484c8349d05fdbe71797e65b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 2 Mar 2021 14:34:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HttpServer/Events/OnWorkerStart.php | 5 ++--- System/Snowflake.php | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/HttpServer/Events/OnWorkerStart.php b/HttpServer/Events/OnWorkerStart.php index 040df62c..0c46236f 100644 --- a/HttpServer/Events/OnWorkerStart.php +++ b/HttpServer/Events/OnWorkerStart.php @@ -25,8 +25,7 @@ class OnWorkerStart extends Callback { /** @var int 重启信号 */ - private int $signal = SIGUSR1 | SIGUSR2 | SIGKILL; - + private int $signal = SIGUSR1 | SIGKILL; /** @@ -47,7 +46,7 @@ class OnWorkerStart extends Callback $this->onWorker($server, $worker_id); } $this->debug(sprintf('%s #%d Pid:%d start.', ucfirst(env('environmental')), $worker_id, $server->worker_pid)); -// Coroutine\go([$this, 'onSignal'], $server, $worker_id); + Coroutine\go([$this, 'onSignal'], $server, $worker_id); } diff --git a/System/Snowflake.php b/System/Snowflake.php index 80ae859e..73bb21e9 100644 --- a/System/Snowflake.php +++ b/System/Snowflake.php @@ -376,7 +376,7 @@ class Snowflake */ public static function reload(): mixed { - return Process::kill((int)Snowflake::getMasterPid(), SIGUSR1 | SIGKILL); + return Process::kill((int)Snowflake::getMasterPid(), SIGUSR1); }