Following signal state into a replacement program

A single-threaded Linux launcher has a handler installed for SIGUSR1 and ignores SIGUSR2. It blocks SIGUSR1 and has one pending SIGUSR1.


The launcher successfully calls fork to create a child. The child then successfully calls execve to replace its program. No new signals are generated, and neither the child nor the replacement program explicitly changes any signal settings.


Complete the child's signal state immediately after fork and immediately after execve, before the replacement program executes its own setup. Enter handler, default, or ignore for action cells, and yes or no for the other cells.


A parent creates a child that then replaces its program.


Signal propertyBefore execveAfter execve
SIGUSR1 action
SIGUSR2 action
SIGUSR1 blocked
SIGUSR1 pending

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: