mirror of
https://github.com/AltraMayor/f3.git
synced 2025-08-04 02:55:57 -04:00
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:
parent
9ab7e7a48d
commit
381d8603c2
@ -413,6 +413,8 @@ static int read_all(int fd, char *buf, size_t count)
|
|||||||
do {
|
do {
|
||||||
ssize_t rc = read(fd, buf + done, count - done);
|
ssize_t rc = read(fd, buf + done, count - done);
|
||||||
if (rc < 0) {
|
if (rc < 0) {
|
||||||
|
if (errno == EINTR)
|
||||||
|
continue;
|
||||||
assert(errno == EIO);
|
assert(errno == EIO);
|
||||||
return - errno;
|
return - errno;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user