← All docs

pcntl_sigprocmask()

Changes the signal mask and optionally writes the prior blocked signals.

pcntl_sigprocmask()

function pcntl_sigprocmask(int $mode, mixed $signals, mixed $old_signals = []): bool

Changes the signal mask and optionally writes the prior blocked signals.

Parameters:

  • $mode (int)
  • $signals (mixed)
  • $old_signals (mixed), passed by reference, default [], optional

Returns: bool

Availability

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

Internals

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