Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Before we explain what sigsuspend() does, we first describe a situation where we need to use it. Consider the following scenario that is sometimes encountered when programming with signals:
We temporarily block a signal so that the handler for the signal doesn’t interrupt the execution of some critical section of code.
We unblock the signal, and then suspend execution until the signal is delivered.