From 065555a80e5d027f3db56dc4346a0cd1a787f50b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Thu, 18 Nov 2021 18:06:45 +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 --- ServerManager.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ServerManager.php b/ServerManager.php index c943787..1b20993 100644 --- a/ServerManager.php +++ b/ServerManager.php @@ -169,7 +169,9 @@ class ServerManager } $system = sprintf('[%s].process', Config::get('id', 'system-service')); $process = new Process(function (Process $process) use ($customProcess, $system) { - $process->name($system . '(' . $customProcess->getName() . ')'); + if (Kiri::getPlatform()->isLinux()) { + $process->name($system . '(' . $customProcess->getName() . ')'); + } $customProcess->process($process); }, $customProcess->getRedirectStdinAndStdout(), $customProcess->getPipeType(), $customProcess->isEnableCoroutine()); $this->logger->debug($system . ' ' . $customProcess->getName() . ' start.');