iiirogers
Re:EINTR and PC Loser-Ing: The “Worse Is Better” Case Study (2011)
on Wednesday June 19, 2019 @01:22PM (#20225215)
Discussion on EINTR wrt close in Linux:
https://lwn.net/Articles/576478/
Glibc shows use with TEMP_FAILURE_RETRY: https://www.gnu.org/software/libc/manual/html_node/Opening-a...
Using TEMP_FAILURE_RETRY when close always deallocates the fd will at best get EBADF, at worse you close a random file descriptor.