From 87fc7a3ab28ce0997ef430a52012f8a00ef25ace Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 3 Nov 2020 19:20: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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/System/Process/Process.php b/System/Process/Process.php index 35eca746..a0d6ca0a 100644 --- a/System/Process/Process.php +++ b/System/Process/Process.php @@ -32,7 +32,8 @@ abstract class Process extends \Swoole\Process $class = get_called_class(); parent::__construct(function ($process) use ($name, $class) { if (Snowflake::isLinux()) { - $this->name('Processes: ' . $class . '::class'); + $prefix = ucfirst(rtrim(Snowflake::app()->id, ':')); + $this->name($prefix . ' processes: ' . $class . '::class'); } $this->onHandler($process); }, false, 1, $enable_coroutine);