mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 14:02:52 +02:00
21b8de87ff
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>