commit | d91e35fb09753f3b27912bba2e6390fa6619fff9 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Wed Nov 30 07:54:47 2016 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Wed Nov 30 07:54:48 2016 +0000 |
tree | 5d72dc19e4a6398507a58085c360b78baed82874 | |
parent | b675f7cd328ee47097f87f9efb5fd37d64d361de [diff] | |
parent | 6b694a76f5da14f8a8e8610fb02ccdb519c54ae7 [diff] |
Merge "ion.c: add O_CLOEXEC to /dev/ion open"
diff --git a/libion/ion.c b/libion/ion.c index 2db8845..a7b22b8 100644 --- a/libion/ion.c +++ b/libion/ion.c
@@ -34,7 +34,7 @@ int ion_open() { - int fd = open("/dev/ion", O_RDONLY); + int fd = open("/dev/ion", O_RDONLY | O_CLOEXEC); if (fd < 0) ALOGE("open /dev/ion failed!\n"); return fd;