← All docs

pcntl_sigwaitinfo()

Waits synchronously for one selected Linux signal and returns its number or false.

pcntl_sigwaitinfo()

function pcntl_sigwaitinfo(mixed $signals, mixed $info = []): mixed

Waits synchronously for one selected Linux signal and returns its number or false.

Parameters:

  • $signals (mixed)
  • $info (mixed), passed by reference, default [], optional

Returns: mixed

Availability

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

Internals

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