Swoole Server getWorkerPid()

Declaration

<?php
Swoole\Server->getWorkerPid(): int|bool

Parameters

none

Return

workerPid

Return the current main worker process ID.

Description

Get the current worker process ID.

Available since > v4.5.0