Restart waitpid if it returns with EINTR