minor fix: ensure retrying reads failing because of EINTR or EAGAIN