diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-19 07:45:34 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-26 06:59:42 +0000 |
| commit | f4ea6100145db78511d8edbe09f9dd3b9832def4 (patch) | |
| tree | 451b906766d09bfc02d4a9117dabe45319282705 /util/nvmutil/lib/io.c | |
| parent | d9f2aff95cb63ad13085e6abd49a75064cd61657 (diff) | |
nvmutil: rename x_i_close to close_on_eintr
that's what it does. waits for eintr to stop firing
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/nvmutil/lib/io.c')
| -rw-r--r-- | util/nvmutil/lib/io.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/util/nvmutil/lib/io.c b/util/nvmutil/lib/io.c index e2db01f4..06fd038f 100644 --- a/util/nvmutil/lib/io.c +++ b/util/nvmutil/lib/io.c @@ -246,12 +246,12 @@ write_to_gbe_bin(void) saved_errno = errno; - if (x_i_close(f->tmp_fd) == -1) { + if (close_on_eintr(f->tmp_fd) == -1) { fprintf(stderr, "FAIL: %s: close\n", f->tname); f->io_err_gbe_bin = 1; } - if (x_i_close(f->gbe_fd) == -1) { + if (close_on_eintr(f->gbe_fd) == -1) { fprintf(stderr, "FAIL: %s: close\n", f->fname); f->io_err_gbe_bin = 1; } @@ -487,7 +487,7 @@ gbe_mv(void) if (fsync_on_eintr(dest_fd) == -1) goto ret_gbe_mv; - if (x_i_close(dest_fd) == -1) + if (close_on_eintr(dest_fd) == -1) goto ret_gbe_mv; if (rename(dest_tmp, f->fname) == -1) @@ -504,7 +504,7 @@ gbe_mv(void) ret_gbe_mv: if (f->gbe_fd > -1) { - if (x_i_close(f->gbe_fd) < 0) + if (close_on_eintr(f->gbe_fd) < 0) rval = -1; if (fsync_dir(f->fname) < 0) { f->io_err_gbe_bin = 1; @@ -514,7 +514,7 @@ ret_gbe_mv: } if (f->tmp_fd > -1) { - if (x_i_close(f->tmp_fd) < 0) + if (close_on_eintr(f->tmp_fd) < 0) rval = -1; f->tmp_fd = -1; |
