From a33f4d27287f886ced60701001e6de1901e91a2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 11 Sep 2020 19:57:01 +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 --- System/Process/Process.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/System/Process/Process.php b/System/Process/Process.php index 7b3b062a..3855e22d 100644 --- a/System/Process/Process.php +++ b/System/Process/Process.php @@ -30,9 +30,10 @@ abstract class Process extends \Swoole\Process */ public function __construct($application, $name) { - parent::__construct(function (\Swoole\Process $process) use ($name) { + $class = get_called_class(); + parent::__construct(function ($process) use ($name, $class) { if (Snowflake::isLinux()) { - $this->name($name); + $this->name($class . ':' . $name); } $this->onHandler($process); }, false, 1, true);