diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-19 07:45:34 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-19 07:45:34 +0000 |
| commit | 1fbe972fa757f10fd6b0b138ce3ab5b0d5cffac8 (patch) | |
| tree | f222261d8ccd771c88c1ff077a2844465fe1e444 /util/nvmutil/lib/file.c | |
| parent | dcf698b9a0b33d08a70be40631e8c502e909a2a5 (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; |
