Properties

$process2promiseCallback

$process2promiseCallback : array

Type

array

$process2runtime

$process2runtime : array

Type

array

$onFork

$onFork : array

Type

array

$rootProcessId

$rootProcessId : int

Type

int

$processId

$processId : int

Type

int

$signalHandlerEventId

$signalHandlerEventId : string

Type

string

$index

$index : int

Type

int

Methods

getInstance()

getInstance() : static

Returns

static —

__construct()

__construct() : mixed

Returns

mixed —

__destruct()

__destruct() : mixed

Returns

mixed —

registerForkHandler()

registerForkHandler(\Closure  $closure) : int

Parameters

\Closure $closure

Returns

int —

cancelForkHandler()

cancelForkHandler(int  $index) : void

Parameters

int $index

forked()

forked() : void

Throws

\Revolt\EventLoop\UnsupportedFeatureException|\Throwable

task()

task(\Closure  $closure) : \Psc\Library\System\Process\Task|false

Parameters

\Closure $closure

Returns

\Psc\Library\System\Process\Task|false —

onSignal()

onSignal(int  $signalCode, \Closure  $handler) : string

Parameters

int $signalCode
\Closure $handler

Throws

\Revolt\EventLoop\UnsupportedFeatureException

Returns

string —

getProcessId()

getProcessId() : int

Returns

int —

getMainProcessId()

getMainProcessId() : int

Returns

int —

isRootProcess()

isRootProcess() : bool

Returns

bool —

registerSignalHandler()

registerSignalHandler() : void

Throws

\Revolt\EventLoop\UnsupportedFeatureException

unregisterSignalHandler()

unregisterSignalHandler() : void

signalSIGCHLDHandler()

signalSIGCHLDHandler() : void

onProcessExit()

onProcessExit(int  $processId, int  $status) : void

Parameters

int $processId
int $status

destroy()

destroy() : void