This commit is contained in:
as2252258@163.com
2021-07-26 02:55:55 +08:00
parent 5fa407d697
commit 2e4e79cef2
4 changed files with 27 additions and 18 deletions
+3 -1
View File
@@ -22,7 +22,9 @@ class ServerDefaultEvent extends Server
*/
public function onStart(\Swoole\Server $server)
{
$this->runEvent(Constant::START, null, [$server]);
$this->setProcessName(sprintf('start[%d].server', $server->worker_pid));
$this->runEvent(Constant::START, null, [$server]);
}