mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Assume that SOCK_CLOEXEC is available and works
This fixes (harmless) data races when accessing the various __have_sock_cloexec variables.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user