![]() |
![]() |
![]() |
![]() |
![]() |
This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Examine and change blocked signals
#include <signal.h>
int pthread_sigmask( int how,
const sigset_t* set,
sigset_t* oset );
This argument is valid only if set is non-NULL.
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The pthread_sigmask() function is used to examine and/or change the calling thread's signal mask. If set is non-NULL, the thread's signal mask is set to set. If oset is non-NULL, the thread's old signal mask is returned in oset.
You can't block the SIGKILL and SIGSTOP signals.
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | Yes |
| Thread | Yes |
![]() |
![]() |
![]() |
![]() |