← All docs

pcntl_sigtimedwait()

Waits up to a timeout for one selected Linux signal and returns its number or false.

pcntl_sigtimedwait()

function pcntl_sigtimedwait(mixed $signals, mixed $info = [], int $seconds = 0, int $nanoseconds = 0): mixed

Waits up to a timeout for one selected Linux signal and returns its number or false.

Parameters:

  • $signals (mixed)
  • $info (mixed), passed by reference, default [], optional
  • $seconds (int), default 0, optional
  • $nanoseconds (int), default 0, optional

Returns: mixed

Availability

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

Internals

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