Accept EINTR and EAGAIN from waitpid