mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
lbutils/file: don't loop EINTR on close()
state is undefined after EINTR. just abort universally. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -108,8 +108,8 @@ exit_cleanup(void)
|
||||
f = &x->f;
|
||||
|
||||
/* close fds if still open */
|
||||
close_on_eintr(&f->tmp_fd);
|
||||
close_on_eintr(&f->gbe_fd);
|
||||
xclose(&f->tmp_fd);
|
||||
xclose(&f->gbe_fd);
|
||||
|
||||
/* unlink tmpfile if it exists */
|
||||
if (f->tname != NULL) {
|
||||
|
||||
Reference in New Issue
Block a user