Q. When a child process terminates before the parent process closes, which of the following is true?
β
Correct Answer: (C)
if the parent process does not support SIGCHLD, the child process becomes a zombie
Explanation: 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.