What does signal(SIGCHLD, SIG_DFL); mean?
问题 I am not handling SIGCHLD in my code. Still my process is removed immediately after termination. I want it to become zombie process. If I set SIGCHLD to SIGDFT then, will it work? How do I set SIGCHLD to SIGDFT? I want process to become zombie, so I can read the child status in parent after waitpid. 回答1: From your question history you seem to be tying yourself in knots over this. Here is the outline on how this works: The default disposition of SIGCHLD is ignore. In other words, if you do