commit | 20fe7744c1b0275be86f9a72c8c1da90065b4501 | [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 | 915c3ae0c2c94352f11c9f2c3dabba4e54dd6e20 [diff] | |
parent | 32fae000105c32a78cfef15521c75e5883723414 [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;