sigpending(2)
Name
sigpending − examine pending signals
Syntax
#include <signal.h>
sigpending(set)
sigset_t *set;
Description
The sigpending system call stores the set of signals that is blocked from delivery and pending for the calling process in the space pointed to by the argument set.
The set argument is manipulated by using the sigsetops() functions.
Return Values
A zero (0) return value indicates that the call succeeded. A −1 return value indicates an error occurred, and errno is set to indicate the reason.
Diagnostics
The sigpending system call fails if the following occurs:
[EFAULT] The set argument points to memory that is not a valid part of the process address space.