Use waitpid with WNOHANG to determine more reliably if the child is running