Examine the set of pending, masked signals for a process
#include <signal.h> int sigpending( sigset_t *set );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The sigpending() function is used to examine the set of pending signals that are masked (blocked) from delivery to the calling thread and that are pending on the calling process or thread. They're saved in the signal set pointed to by set.
See sigprocmask().
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
kill(), pthread_sigmask(), raise(), sigaction(), sigaddset(), sigdelset(), sigemptyset(), sigfillset(), sigismember(), signal(), sigprocmask()