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:

spin lock irq(&current->sigmask lock);

sigandsets(&pending, &current->blocked, &current->pending.signal);

spin unlock irq(&current->sigmask lock);

copy to user(set, Spending, sizeof(sigset t));

Continue reading here: Modifying the Set of Blocked Signals

Was this article helpful?

0 0