|
|
HP-UX Reference Volume 4 of 5 > ppthread_sigmask(3T)Pthread Library |
|
NAMEpthread_sigmask() — examine/change the signal mask of the calling thread. PARAMETERS
DESCRIPTIONpthread_sigmask() allows the calling thread to examine and/or change its signal mask. Unless it is a null pointer, the argument set points to a set of signals which are to be used to change the currently blocked signal set. The argument how indicates how the set is changed. The legal values are:
If the argument oset is not a null pointer, the previous signal mask is returned in oset. If set is a null pointer, the value of the argument how is insignificant and the thread's signal mask is unchanged; thus, the call can be used to inquire about currently blocked signals. If there any pending unblocked signals after the call to pthread_sigmask(), at least one of those signals is delivered before the call to pthread_sigmask() returns. It is impossible to block the SIGKILL or SIGSTOP signal. This is enforced by the system without causing an error to be indicated. The thread's signal mask is not changed if pthread_sigmask() fails for any reason. RETURN VALUEUpon successful completion, pthread_sigmask() returns zero. Otherwise, an error number is returned to indicate the error (the errno variable is not set). |
|