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/file.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/file.c')
| -rw-r--r-- | util/nvmutil/lib/file.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/util/nvmutil/lib/file.c b/util/nvmutil/lib/file.c index 338f3837..e3e1ccfe 100644 --- a/util/nvmutil/lib/file.c +++ b/util/nvmutil/lib/file.c @@ -150,7 +150,7 @@ fsync_dir(const char *path) if (fsync_on_eintr(dirfd) == -1) goto err_fsync_dir; - if (x_i_close(dirfd) == -1) + if (close_on_eintr(dirfd) == -1) goto err_fsync_dir; if (dirbuf != NULL) @@ -170,7 +170,7 @@ err_fsync_dir: free(dirbuf); if (dirfd > -1) - x_i_close(dirfd); + close_on_eintr(dirfd); errno = saved_errno; @@ -367,7 +367,7 @@ err_new_tmpfile: free(dest); if (fd_tmp > -1) - x_i_close(fd_tmp); + close_on_eintr(fd_tmp); return NULL; } @@ -901,7 +901,7 @@ try_err(int loop_err, int errval) } int -x_i_close(int fd) +close_on_eintr(int fd) { int r; int saved_errno = errno; |
