[PATCH] Assume that SOCK_CLOEXEC is available and works

Florian Weimer fweimer@redhat.com
Tue Oct 13 12:28:00 GMT 2015


This fixes (harmless, I assume) data races when accessing the various
__have_sock_cloexec variables.

Compiled and tested on x86_64-redhat-linux-gnu.  According to the
previous thread (“O_CLOEXEC and SOCK_CLOEXEC“), there might be some
impact of this change on Hurd and NaCl, but it seems manageable.

Florian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Assume-that-SOCK_CLOEXEC-is-available-and-works.patch
Type: text/x-patch
Size: 13078 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20151013/fda2a0eb/attachment.bin>


More information about the Libc-alpha mailing list