You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm starting to think that I should just bite the bullet and implement the horrible-but-standards-compliant solution so I can stop worrying about this.
should close() be retried on EINTR in util/daemonize.c and util/entropy.c?
freebsd close(2) man page says: "In case of any error except EBADF, the supplied file descriptor is de-allocated and therefore is no longer valid."
linux close(2) man page also suggests not retrying close() in case of any error (except EINTR on HP-UX).
in a multi-threaded program, retrying close() may end up closing another thread's file descriptor (this is mentioned in linux close(2) man page too).
The text was updated successfully, but these errors were encountered: