Choosing the interface for each responsibility

A developer is reviewing the signal-handling code of a single-threaded POSIX utility. Match each interface to its specific responsibility. Distinguish changing delivery policy from constructing a set in memory and from selecting the response to delivery.

Match each term
A.

Examines or establishes the response associated with a particular signal

B.

Examines or changes which signals are blocked during ordinary execution

C.

Initializes a set object in memory so that it contains no signals

D.

Atomically substitutes a temporary blocked set and waits for a caught or terminating signal

sigprocmask()

sigemptyset()

sigsuspend()

sigaction()

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Signal Handling Questions: