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/lib/rand.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'util/libreboot-utils/lib/rand.c') diff --git a/util/libreboot-utils/lib/rand.c b/util/libreboot-utils/lib/rand.c index 249e2e6c..153798f6 100644 --- a/util/libreboot-utils/lib/rand.c +++ b/util/libreboot-utils/lib/rand.c @@ -176,7 +176,7 @@ retry_rand: { rc == 0) { /* prevent infinite loop on fatal err */ #if defined(USE_URANDOM) && \ ((USE_URANDOM) > 0) - close_on_eintr(&fd); + xclose(&fd); #endif goto err; } @@ -186,7 +186,7 @@ retry_rand: { #if defined(USE_URANDOM) && \ ((USE_URANDOM) > 0) - close_on_eintr(&fd); + xclose(&fd); #endif } -- cgit v1.2.1