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:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user