A

Admin • 831.35K Points
Coach

Q. When a child process terminates before the parent process closes, which of the following is true?

  • (A) The child process becomes an orphan
  • (B) The parent process disappears
  • (C) if the parent process does not support SIGCHLD, the child process becomes a zombie
  • (D) None of the above
  • Correct Answer - Option(C)
  • Views: 16
  • Filed under category Linux
  • Hashtags:

Explanation by: Admin
When a child process stops or terminates, SIGCHLD is sent to the parent process. The default response to the signal is to ignore it. The signal can be intercepted and the exit status of the child process can be obtained by immediately calling wait(2) and wait3(3C). This will remove zombie process entries as quickly as possible.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.