Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

pcntl_wstopsig

Description

The pcntl_wstopsig of PCNTL for PHP returns the signal which caused the child to stop.

Syntax

pcntl_wstopsig(
    int $status
): int|false

Parameters

status

The status parameter is the status parameter supplied to a successful call to pcntl_waitpid().

Return

Returns the signal number. If the functionality is not supported by the OS, false is returned.

Examples

1 · status

<?

$process_id = 0;

pcntl_waitpid($process_id, $status);

$return = pcntl_wstopsig($status);

var_export($return);

?>
0
HomeMenu