sigpending(sigset_t *set);
sigpending examines that the signals are blocked or pending.
it returns the set of signals that are pending for delivery to the calling process i.e. the siganls while have been raised while blocked. This set of signals are fetched from “sa_mask”.By masking we set the signals for blocking .