Examine or change the current thread's signal mask.
This routine is for Digital UNIX systems only.
pthread_sigmask( how, set, oset );
Argument Data Type Accesshow integer read set sigset_t read oset sigset_t write
#includeint pthread_sigmask ( int how, const sigset_t *set, sigset_t *oset);
SIG_BLOCK The resulting set is the union of the current set and the signal set pointed to by the set argument. SIG_UNBLOCK The resulting set is the intersection of the current set and the complement of the signal set pointed to by the set argument. SIG_SETMASK The resulting set is the signal set pointed to by the set argument.
If there are any unblocked signals pending after a call to this routine, at least one of those signals will be delivered before this routine returns.
This routine does not allow the SIGKILL or SIGSTOP signals to be blocked. If a program attempts to block one of these signals, pthread_sigmask gives no indication of the error.
Return Description0 Successful completion. [EINVAL] The value specified for how is invalid.