From 381d8603c29f19e31520f2cf2cc043539c9565cc Mon Sep 17 00:00:00 2001 From: Michel Machado Date: Mon, 10 Dec 2018 14:04:29 -0500 Subject: [PATCH] f3probe: deal with an assertion failure This patch may address the following issue: https://github.com/AltraMayor/f3/issues/82 --- libdevs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libdevs.c b/libdevs.c index cf8381e..f7668e7 100644 --- a/libdevs.c +++ b/libdevs.c @@ -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; }