diff options
author | Nick Kralevich <nnk@google.com> | 2015-02-27 23:19:11 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-02-27 23:19:11 +0000 |
commit | 5e14f416afa412e49ebb07239e6e570c9405518d (patch) | |
tree | a47de6a6a5894022afc9e7817ed33b11a2941c2c /libcutils | |
parent | 1dd71ae12e2e47c9ca63eb04878ee9632cc4417c (diff) | |
parent | 6864e6739027adf725ced33777d3e21f80a95479 (diff) | |
download | system_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.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; |