L The parent process waits for the child process to end through functions such as wait and waitpid, which causes the parent process to hang
If the parent process is busy, you can use the signal function to install handler for SIGCHLD, because the parent process will receive the signal when the child process ends, and you can call the wait recycle in handler
L If the parent process does not care about when the child process ends, it can use signal (SIGCHLD, Sig_ign) to notify the kernel that it is not interested in the end of the child process, and then the kernel recycles and no longer sends a signal to the parent process.
L also have some skills, that is, fork two times, the parent process fork a child process, and then continue to work, the child process fork a grandchild process exit, then the Sun process is init takeover, after the sun process, init will be recycled. But the recycling of the sub-process to do it yourself.
Four ways to deal with an interview----zombie process