sigpending() stores the set of signals blocked from delivery to the calling
thread and that are pending on the process or calling thread in set.
sigpending() returns 0 on success.
sigpending() returns -1 when not successful. It also sets errno to
indicate the error. [There is no value of errno defined for sigpending.]