|
|
HP-UX Reference > Ppthread_sigmask(3T)Pthread LibraryHP-UX 11i Version 2: December 2007 Update |
|
NAMEpthread_sigmask() — examine/change signal mask of 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). |
|