PHP.nl

pcntl_sigprocmask

pcntl_sigprocmask

Sets and retrieves blocked signals

bool **pcntl_sigprocmask** int $mode array $signals array $old_signals

The function adds, removes or sets blocked signals, depending on the parameter. pcntl_sigprocmask``mode

mode Sets the behavior of . Possible values:

  `pcntl_sigprocmask``SIG_BLOCK``SIG_UNBLOCK``SIG_SETMASK`

signalsList of signals.

old_signals The parameter is set to an array containing the list of the previously blocked signals. old_signals

return.success

Voorbeeld: example

<?php
pcntl_sigprocmask(SIG_BLOCK, array(SIGHUP));
$oldset = array();
pcntl_sigprocmask(SIG_UNBLOCK, array(SIGHUP), $oldset);
?>

pcntl_sigwaitinfo``pcntl_sigtimedwait