|
|
HP-UX Reference > Ssigsetmask(2)TO BE OBSOLETEDHP-UX 11i Version 2: December 2007 Update |
|
NAMEsigsetmask() — set current signal mask DESCRIPTIONsigsetmask() sets the current signal mask (those signals that are blocked from delivery). Signal i is blocked if the i-th bit in mask, as specified with the macro sigmask(i), is a 1. It is not possible to mask signals that cannot be ignored, as documented in signal(5); this restriction is silently imposed by the system. sigblock() can be used to add elements to the set of blocked signals. EXAMPLESThe following call to sigsetmask() causes only the SIGUSR1 and SIGUSR2 signals to be blocked: long oldmask; oldmask = sigsetmask (sigmask (SIGUSR1) | sigmask (SIGUSR2)); APPLICATION USAGEThreads ConsiderationsSince each thread maintains its own blocked signal mask, sigsetmask() modifies only the calling thread's blocked signal mask. For more information regarding signals and threads, refer to signal(5). |
|