From 03654739c99c781a84064e0dbb4107b766c4f845 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 1 Mar 2021 17:09:47 +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 --- HttpServer/Events/OnWorkerStart.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/HttpServer/Events/OnWorkerStart.php b/HttpServer/Events/OnWorkerStart.php index 9149c21f..b2db2c7d 100644 --- a/HttpServer/Events/OnWorkerStart.php +++ b/HttpServer/Events/OnWorkerStart.php @@ -38,15 +38,14 @@ class OnWorkerStart extends Callback public function onHandler(Server $server, int $worker_id): void { Coroutine::set(['enable_deadlock_check' => false]); - putenv('worker=' . $worker_id); - $this->debug(sprintf('System#%d start.', $worker_id)); if ($worker_id >= $server->setting['worker_num']) { $this->onTask($server, $worker_id); } else { $this->onWorker($server, $worker_id); } + $this->debug(sprintf('%s#%d start.', env('environmental'), $worker_id)); Coroutine\go([$this, 'onSignal'], $server, $worker_id); }