diff options
author | Florian Weimer <fweimer@redhat.com> | 2015-10-17 12:02:37 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2015-10-17 12:02:37 +0200 |
commit | 52fb79d6cdecb89a6f0375091e7c12ed79ae6760 (patch) | |
tree | e4885bfee90d7fe9f584518d3bc242050c725ef0 /socket | |
parent | f546f87c4ffb1642ffc96b8d614c329ed35252c3 (diff) | |
download | glibc-52fb79d6cdecb89a6f0375091e7c12ed79ae6760.tar glibc-52fb79d6cdecb89a6f0375091e7c12ed79ae6760.tar.gz glibc-52fb79d6cdecb89a6f0375091e7c12ed79ae6760.tar.bz2 glibc-52fb79d6cdecb89a6f0375091e7c12ed79ae6760.zip |
Assume that SOCK_CLOEXEC is available and works
This fixes (harmless) data races when accessing the various
__have_sock_cloexec variables.
Diffstat (limited to 'socket')
-rw-r--r-- | socket/have_sock_cloexec.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/socket/have_sock_cloexec.c b/socket/have_sock_cloexec.c index c849f92059..72b184cb23 100644 --- a/socket/have_sock_cloexec.c +++ b/socket/have_sock_cloexec.c @@ -19,10 +19,6 @@ #include <sys/socket.h> #include <kernel-features.h> -#if defined SOCK_CLOEXEC && !defined __ASSUME_SOCK_CLOEXEC -int __have_sock_cloexec; -#endif - #if defined O_CLOEXEC && !defined __ASSUME_PIPE2 int __have_pipe2; #endif |