1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +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

@ -255,7 +255,7 @@ __netlink_open (struct netlink_handle *h)
{
struct sockaddr_nl nladdr;
h->fd = __socket (PF_NETLINK, SOCK_RAW, NETLINK_ROUTE);
h->fd = __socket (PF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, NETLINK_ROUTE);
if (h->fd < 0)
goto out;