From 1c7be3ed770eb7b28982f86d9a9146dd25999e3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 3 Nov 2020 19:23:14 +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 | 2 +- System/Process/ServerInotify.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/System/Process/Process.php b/System/Process/Process.php index 0a8c5911..2b724210 100644 --- a/System/Process/Process.php +++ b/System/Process/Process.php @@ -33,7 +33,7 @@ abstract class Process extends \Swoole\Process parent::__construct(function ($process) use ($name, $class) { if (Snowflake::isLinux()) { $prefix = ucfirst(rtrim(Snowflake::app()->id, ':')); - $this->name($prefix . ' ' . $class . '::class'); + $this->name($prefix . ': ' . $class . '::class'); } $this->onHandler($process); }, false, 1, $enable_coroutine); diff --git a/System/Process/ServerInotify.php b/System/Process/ServerInotify.php index d9502711..11a565d5 100644 --- a/System/Process/ServerInotify.php +++ b/System/Process/ServerInotify.php @@ -42,7 +42,6 @@ class ServerInotify extends Process if (extension_loaded('inotify')) { $this->inotify = inotify_init(); $this->events = IN_MODIFY | IN_DELETE | IN_CREATE | IN_MOVE; - $process->name('event: file change.'); foreach ($this->dirs as $dir) { $this->watch($dir); }