diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index 65da82e4..d2a0414b 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -1425,6 +1425,9 @@ lseek_eintr(int fd, off_t offset, int whence) old = lseek(fd, offset, whence); } while (old == (off_t)-1 && errno == EINTR); + if (errno == EINTR) + errno = 0; + return old; }