From 3ec02e747dcdb944ba2a129f8dfd10ef5811acb6 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Sun, 28 Feb 2021 17:50:22 +0800 Subject: [PATCH] modify --- System/Snowflake.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/System/Snowflake.php b/System/Snowflake.php index cb4b538b..dcf39dd1 100644 --- a/System/Snowflake.php +++ b/System/Snowflake.php @@ -394,6 +394,9 @@ class Snowflake public static function reload(): mixed { // $pid = Snowflake::app()->getSwoole()->master_pid; + + var_dump(Snowflake::getMasterPid()); + return Process::kill((int)Snowflake::getMasterPid(), SIGUSR1); // return Snowflake::app()->getSwoole()->reload(); }