summaryrefslogtreecommitdiffstats
path: root/libcutils
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2015-02-27 23:19:11 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-02-27 23:19:11 +0000
commit5e14f416afa412e49ebb07239e6e570c9405518d (patch)
treea47de6a6a5894022afc9e7817ed33b11a2941c2c /libcutils
parent1dd71ae12e2e47c9ca63eb04878ee9632cc4417c (diff)
parent6864e6739027adf725ced33777d3e21f80a95479 (diff)
downloadsystem_core-5e14f416afa412e49ebb07239e6e570c9405518d.zip
system_core-5e14f416afa412e49ebb07239e6e570c9405518d.tar.gz
system_core-5e14f416afa412e49ebb07239e6e570c9405518d.tar.bz2
am 6864e673: Merge "More SOCK_CLOEXEC"
* commit '6864e6739027adf725ced33777d3e21f80a95479': More SOCK_CLOEXEC
Diffstat (limited to 'libcutils')
-rw-r--r--libcutils/uevent.c2
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;