summaryrefslogtreecommitdiffstats
path: root/libion/ion.c
diff options
context:
space:
mode:
Diffstat (limited to 'libion/ion.c')
-rw-r--r--libion/ion.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libion/ion.c b/libion/ion.c
index 2db88453e..a7b22b839 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;