f3probe: deal with an assertion failure

This patch may address the following issue:
https://github.com/AltraMayor/f3/issues/82
This commit is contained in:
Michel Machado 2018-12-10 14:04:29 -05:00
parent 9ab7e7a48d
commit 381d8603c2

View File

@ -413,6 +413,8 @@ static int read_all(int fd, char *buf, size_t count)
do {
ssize_t rc = read(fd, buf + done, count - done);
if (rc < 0) {
if (errno == EINTR)
continue;
assert(errno == EIO);
return - errno;
}