Examines pending signals.
#include <signal.h> int sigpending (sigset_t *set);
Call either the sigemptyset or the sigfillset function at least once for each object of type sigset_t prior to any other use of that object. If you do not initialize an object in this way and supply an argument to the sigpending function, the result is undefined.
See sigemptyset, and sigfillset in this section.
0 | Indicates success. |
-1 | Indicates an error; errno is set to the
following value:
|