|
|
HP-UX Reference > Ssigblock(2)TO BE OBSOLETEDHP-UX 11i Version 2: December 2007 Update |
|
NAMEsigblock() — block signals DESCRIPTIONsigblock() causes the signals specified in mask to be added to the set of signals currently being blocked from delivery. Signal i is blocked if the i-th bit in mask is 1, as specified with the macro sigmask(i). It is not possible to block signals that cannot be ignored, as documented in signal(5); this restriction is silently imposed by the system. Use sigsetmask() to set the mask absolutely (see sigsetmask(2)). EXAMPLESThe following call to sigblock() adds the SIGUSR1 and SIGUSR2 signals to the mask of signals currently blocked for the process:
APPLICATION USAGEThreads ConsiderationsSince each thread maintains its own blocked signal mask, sigblock() modifies only the calling thread's blocked signal mask. For more information regarding signals and threads, refer to signal(5). |
|