mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 14:02:52 +02:00
util/nvmutil: reset errno if EINTR on lseek
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user