in log read, check for EINTR instead of EAGAIN to avoid infinite loops