diff options
author | Nick Kralevich <nnk@google.com> | 2015-02-26 13:32:52 -0800 |
---|---|---|
committer | Nick Kralevich <nnk@google.com> | 2015-02-26 13:32:52 -0800 |
commit | 6d3cddb2e245738f0b78a758a83ebf2608865394 (patch) | |
tree | dcbaf1e13e5fd41a46ed2108b2a57b41dd54dbb2 /libcutils | |
parent | be9712156bdcf8cff774a78a3afdb0c562998c73 (diff) | |
download | system_core-6d3cddb2e245738f0b78a758a83ebf2608865394.zip system_core-6d3cddb2e245738f0b78a758a83ebf2608865394.tar.gz system_core-6d3cddb2e245738f0b78a758a83ebf2608865394.tar.bz2 |
More SOCK_CLOEXEC
Change-Id: I3e18f34d08a6443aaf55d7c91c27867840ac1773
Diffstat (limited to 'libcutils')
-rw-r--r-- | libcutils/uevent.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcutils/uevent.c b/libcutils/uevent.c index 827170a..de5d227 100644 --- a/libcutils/uevent.c +++ b/libcutils/uevent.c @@ -112,7 +112,7 @@ int uevent_open_socket(int buf_sz, bool passcred) addr.nl_pid = getpid(); addr.nl_groups = 0xffffffff; - s = socket(PF_NETLINK, SOCK_DGRAM, NETLINK_KOBJECT_UEVENT); + s = socket(PF_NETLINK, SOCK_DGRAM | SOCK_CLOEXEC, NETLINK_KOBJECT_UEVENT); if(s < 0) return -1; |