← All docs

pcntl_get_last_error()

Returns the errno recorded by the most recent failing PCNTL operation.

pcntl_get_last_error()

function pcntl_get_last_error(): int

Returns the errno recorded by the most recent failing PCNTL operation.

Parameters: none.

Returns: int

Availability

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how pcntl_get_last_error is implemented in the compiler, see the internals page.