commit | 6d3cddb2e245738f0b78a758a83ebf2608865394 | [log] [tgz] |
---|---|---|
author | Nick Kralevich <nnk@google.com> | Thu Feb 26 13:32:52 2015 -0800 |
committer | Nick Kralevich <nnk@google.com> | Thu Feb 26 13:32:52 2015 -0800 |
tree | dcbaf1e13e5fd41a46ed2108b2a57b41dd54dbb2 | |
parent | be9712156bdcf8cff774a78a3afdb0c562998c73 [diff] [blame] |
More SOCK_CLOEXEC Change-Id: I3e18f34d08a6443aaf55d7c91c27867840ac1773
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 @@ 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;