Examining the Pending Blocked Signals
The sigpending( ) system call allows a process to examine the set of pending blocked signals—i.e., those that have been raised while blocked. The corresponding sys_sigpending( ) service routine acts on a single parameter, set, namely, the address of a user variable where the array of bits must be copied:
sigandsets(&pending, ¤t->blocked, ¤t->pending.signal);
spin unlock irq(¤t->sigmask lock);
copy to user(set, Spending, sizeof(sigset t));
Continue reading here: Modifying the Set of Blocked Signals
Was this article helpful?