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); }