ion.c: add O_CLOEXEC to /dev/ion open

Test: device boots and no obvious problems.
Change-Id: I0845b79de49b77878adaf6cd14cc506f7586cccb
This commit is contained in:
Nick Kralevich 2016-11-29 15:20:18 -08:00
parent 9bfd9f558b
commit 6b694a76f5

View file

@ -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;