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