sigprocmask |
Prototype: |
#include <signal.h>
int sigprocmask(int how, const sigset_t *sigset, sigset_t *oldsigset);
|
General Description: |
Set which signals are permitted to interrupt while servicing a signal. |
Return Value: |
Nonzero upon error; zero otherwise. |
Parameters |
how |
This is how the interrupting signals are treated while servicing a signal.SIG_BLOCK - The set of blocked signals is the union of the current set and the sigset argument.SIG_UNBLOCK - The signals in sigset are removed from the current set of blocked signals. It is legal to attempt to unblock a signal which is not blocked.SIG_SETMASK - The set of blocked signals is set to the argument sigset. |
sigset |
The destination signal-set. |
oldsigset |
If non-NULL, the call places a copy of the old values in here. |
Possible Errors |
EFAULT |
The sigset or oldsigset parameters point to memory which is not a valid part of the process address space. |
EINTR |
System call was interrupted. |
Examples |
(none)
(c)Files, etc.