mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
util/nvmutil: fix lseek eintr err check
it should be is equal, not not equal Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -1822,14 +1822,13 @@ static off_t
|
|||||||
lseek_eintr(int fd, off_t off, int whence,
|
lseek_eintr(int fd, off_t off, int whence,
|
||||||
int loop_eagain, int loop_eintr)
|
int loop_eagain, int loop_eintr)
|
||||||
{
|
{
|
||||||
off_t old;
|
off_t old = -1;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
old = lseek(fd, off, whence);
|
old = lseek(fd, off, whence);
|
||||||
} while (old == (off_t)-1
|
} while (old == (off_t)-1 && (
|
||||||
&& (!(
|
|
||||||
errno == try_err(loop_eintr, EINTR) ||
|
errno == try_err(loop_eintr, EINTR) ||
|
||||||
errno == try_err(loop_eagain, EAGAIN))));
|
errno == try_err(loop_eagain, EAGAIN)));
|
||||||
|
|
||||||
return old;
|
return old;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user