commit | 6b694a76f5da14f8a8e8610fb02ccdb519c54ae7 | [log] [tgz] |
---|---|---|
author | Nick Kralevich <nnk@google.com> | Tue Nov 29 15:20:18 2016 -0800 |
committer | Nick Kralevich <nnk@google.com> | Tue Nov 29 15:20:33 2016 -0800 |
tree | be8e7b14e505b031244dd25d80625ba6bf4c684d | |
parent | 9bfd9f558b116e208aef7bdeef887ca37fcd2007 [diff] [blame] |
ion.c: add O_CLOEXEC to /dev/ion open Test: device boots and no obvious problems. Change-Id: I0845b79de49b77878adaf6cd14cc506f7586cccb
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;