Added a pcntl_waitpid thing to the daemon to try to stop zombies