Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 22. Signals: Advanced Features > Waiting for a Signal Using a Mask: sig...

22.9. Waiting for a Signal Using a Mask: sigsuspend()

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:

  1. We temporarily block a signal so that the handler for the signal doesn’t interrupt the execution of some critical section of code.

  2. We unblock the signal, and then suspend execution until the signal is delivered.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial