From 736a2504bbe1014fc2804c311e10b72826a71b74 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Wed, 1 Apr 2026 17:43:43 +0100 Subject: lbutils/file: don't loop EINTR on close() state is undefined after EINTR. just abort universally. Signed-off-by: Leah Rowe --- util/libreboot-utils/include/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/libreboot-utils/include/common.h') diff --git a/util/libreboot-utils/include/common.h b/util/libreboot-utils/include/common.h index de643402..7d566d70 100644 --- a/util/libreboot-utils/include/common.h +++ b/util/libreboot-utils/include/common.h @@ -525,7 +525,7 @@ int secure_file(int *fd, int check_seek, int do_lock, mode_t mode); -void close_on_eintr(int *fd); +void xclose(int *fd); int fsync_on_eintr(int fd); int fs_rename_at(int olddirfd, const char *old, int newdirfd, const char *new); -- cgit v1.2.1