Enable no-interrupt close() on macOS
See investigation by @jralls here.
It would be good if we could do similarly to what Chromium have done, and force macOS to use a no-interrupt version of close()
. That would avoid any issues with close()
returning EINTR
and leaving the FD in an undefined state on macOS.
g_close()
and _g_safe_close()
would need to be changed.