Swoole Server getMasterPid()

Notice: ext-swoole is supported until v4.7.1, use ext-openswoole >= v4.7.1. Latest version: pecl install openswoole-4.9.1

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