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

pcntl_wifsignaled

Description

The pcntl_wifsignaled of PCNTL for PHP checks whether the status code represents a termination due to a signal.

Syntax

pcntl_wifsignaled(
    int $status
): bool

Parameters

status

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

Return

Returns true if the child process exited because of a signal which was not caught, false otherwise.

Examples

1 · status

<?

$process_id = 0;

pcntl_waitpid($process_id, $status);

$return = pcntl_wifsignaled($status);

var_export($return);
false