]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - sysdeps/unix/sysv/linux/check_native.c
Create more sockets with SOCK_CLOEXEC [BZ #15722]
[thirdparty/glibc.git] / sysdeps / unix / sysv / linux / check_native.c
index 4a1646089ffb7f1e501f66b949e48706ff847e08..7e5a7c9be30c05e7bfaf0b7d281054caaaed29e2 100644 (file)
@@ -41,7 +41,7 @@ void
 __check_native (uint32_t a1_index, int *a1_native,
                uint32_t a2_index, int *a2_native)
 {
-  int fd = __socket (PF_NETLINK, SOCK_RAW, NETLINK_ROUTE);
+  int fd = __socket (PF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, NETLINK_ROUTE);
 
   struct sockaddr_nl nladdr;
   memset (&nladdr, '\0', sizeof (nladdr));