avoid waitpid when no children exist