Don't call waitpid() on a source that has already exited.