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;