1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-01 10:06:57 +03:00

Create more sockets with SOCK_CLOEXEC [BZ #15722]

This commit is contained in:
Florian Weimer
2017-04-19 07:45:04 +02:00
parent e92030239a
commit 2f83a7294d
9 changed files with 28 additions and 10 deletions

View 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));