diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-03 21:43:32 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-03 21:43:32 +0000 |
| commit | 21b8de87ff5f89d8fec20c2228b5296714ff48a5 (patch) | |
| tree | d6fc794e0cb1a473e71bd403b40bde15bd286190 /config/coreboot/d945gclf_512kb | |
| parent | 493e3cf0697ddedb7cf576a92ba890315356a46a (diff) | |
util/nvmutil: re-try reads if errno is EINTR
this is a bit of fault tolerance. a bit bloated too,
but it should make the code more resilient.
we limited the number of retries to 200 retries.
EINTR is when the syscall (read/pread) is interrupted.
we still error out on other conditions; we also still
error out on EINTR if the number of re-tries surpasses
200.
during this re-try loop, if *another* error occurs, we
exit as normal. this is done for both files: the gbe
file, and /dev/urandom.
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'config/coreboot/d945gclf_512kb')
0 files changed, 0 insertions, 0 deletions
