Examines the pending signals.
#include <signal.h> int sigpending ( sigset_t *set );
(OUT) Points to the set of signals that are blocked from delivery to the calling thread and that are pending on the process or the calling thread.
If successful, returns 0. Otherwise, returns -1 and sets errno to indicate the error.
Each object of type sigset_t must be initialized once with a call to either sigfillset or sigemptyset before calling the other functions which manage the signal set.
IMPORTANT:This function is only available to NLMs that are using POSIX semantics.