Unix and Linux Discussions Tagged with signals |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
3 |
3,606 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
2,170 |
Programming |
|
|
|
9 |
3,944 |
Programming |
|
|
|
11 |
11,776 |
Shell Programming and Scripting |
|
|
|
8 |
3,305 |
UNIX for Advanced & Expert Users |
|
|
|
3 |
14,435 |
Shell Programming and Scripting |
|
|
|
2 |
15,047 |
Programming |
|
|
|
6 |
5,568 |
Programming |
|
|
|
5 |
14,740 |
Shell Programming and Scripting |
|
|
|
2 |
8,734 |
Programming |
|
|
|
0 |
3,543 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
6,995 |
Programming |
|
|
|
4 |
3,449 |
UNIX for Advanced & Expert Users |
|
|
|
3 |
2,848 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,747 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
5,798 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
18,815 |
Programming |
|
|
|
8 |
9,780 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
4,307 |
Programming |
|
|
|
1 |
6,671 |
Programming |
|
|
|
1 |
11,710 |
Programming |
|
|
|
1 |
5,065 |
UNIX for Dummies Questions & Answers |
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)