From 820a2a37af0078aff677aff6b74f1fcbcc2497e7 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Sun, 28 Feb 2021 14:33:40 +0800 Subject: [PATCH] modify --- System/Snowflake.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/System/Snowflake.php b/System/Snowflake.php index 7b9ea044..f7027bb8 100644 --- a/System/Snowflake.php +++ b/System/Snowflake.php @@ -393,6 +393,8 @@ class Snowflake */ public static function reload(): mixed { + $pid = Snowflake::app()->getSwoole()->master_pid; + return Process::kill($pid, SIGUSR1 & SIGUSR2); return Snowflake::app()->getSwoole()->reload(); }