Added a daemonize() function to account for certain conditions where the forked proce...