pcntl_sigprocmask(3) php man page | unix.com

Man Page: pcntl_sigprocmask

Operating Environment: php

Section: 3

PCNTL_SIGPROCMASK(3)							 1						      PCNTL_SIGPROCMASK(3)

pcntl_sigprocmask - Sets and retrieves blocked signals

SYNOPSIS
bool pcntl_sigprocmask (int $how, array $set, [array &$oldset])
DESCRIPTION
The pcntl_sigprocmask(3) function adds, removes or sets blocked signals, depending on the $how parameter.
PARAMETERS
o $how - Sets the behavior of pcntl_sigprocmask(3). Possible values: o SIG_BLOCK: Add the signals to the currently blocked signals. o SIG_UNBLOCK: Remove the signals from the currently blocked signals. o SIG_SETMASK: Replace the currently blocked signals by the given list of signals. o $set - List of signals. o $oldset - The $oldset parameter is set to an array containing the list of the previously blocked signals.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1 pcntl_sigprocmask(3) example <?php pcntl_sigprocmask(SIG_BLOCK, array(SIGHUP)); $oldset = array(); pcntl_sigprocmask(SIG_UNBLOCK, array(SIGHUP), $oldset); ?>
SEE ALSO
pcntl_sigwaitinfo(3), pcntl_sigtimedwait(3). PHP Documentation Group PCNTL_SIGPROCMASK(3)
Related Man Pages
pcntl_sigwaitinfo(3) - php
pcntl_sigprocmask(3) - php
rt_sigprocmask(2) - mojave
rt_sigprocmask(2) - xfree86
rt_sigprocmask(2) - posix
Similar Topics in the Unix Linux Community
Process signals as administration
Do UNIX signals produce interrupts?
How to find blocked process in vmstat?
Parse the longest matching string
Blocked 64.120.88.201 for Hacking