
The original process should use _exit if the forking of the child process is successful. This makes sure that the exit handlers are called only when the daemon process exits.
The original process should use _exit if the forking of the child process is successful. This makes sure that the exit handlers are called only when the daemon process exits.