https://thinkiii.blogspot.com/2009/12/double-fork-to-avoid-zombie-process.html
thinkiii: double fork to avoid zombie process
It is a common mistake to fork a child process without calling waitpid() to wait for the termination of the child process. Without a wait() ...
doubleforkavoidzombieprocess