Swoole Server getMasterPid()

Declaration

<?php
Swoole\Server->getMasterPid(): int

Parameters

none

Return

masterPid

Return the master thread process ID.

Description

Get the master process thread ID.

Available since > v4.5.0