summaryrefslogtreecommitdiffstats
path: root/minui/events.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2019-01-16 18:29:17 +0100
committerTao Bao <tbao@google.com>2019-03-01 23:24:41 +0100
commitb549243b2716c293d0a1be45fe28088b0150789d (patch)
treea9fda0ad47571634be7129c40cdde52ef33a15e0 /minui/events.cpp
parentMerge "Use android::base::Pipe." (diff)
downloadandroid_bootable_recovery-b549243b2716c293d0a1be45fe28088b0150789d.tar
android_bootable_recovery-b549243b2716c293d0a1be45fe28088b0150789d.tar.gz
android_bootable_recovery-b549243b2716c293d0a1be45fe28088b0150789d.tar.bz2
android_bootable_recovery-b549243b2716c293d0a1be45fe28088b0150789d.tar.lz
android_bootable_recovery-b549243b2716c293d0a1be45fe28088b0150789d.tar.xz
android_bootable_recovery-b549243b2716c293d0a1be45fe28088b0150789d.tar.zst
android_bootable_recovery-b549243b2716c293d0a1be45fe28088b0150789d.zip
Diffstat (limited to 'minui/events.cpp')
-rw-r--r--minui/events.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/minui/events.cpp b/minui/events.cpp
index d94e97723..30f8d50a2 100644
--- a/minui/events.cpp
+++ b/minui/events.cpp
@@ -66,7 +66,7 @@ int ev_init(ev_callback input_cb, bool allow_touch_inputs) {
dirent* de;
while ((de = readdir(dir))) {
if (strncmp(de->d_name, "event", 5)) continue;
- int fd = openat(dirfd(dir), de->d_name, O_RDONLY);
+ int fd = openat(dirfd(dir), de->d_name, O_RDONLY | O_CLOEXEC);
if (fd == -1) continue;
// Use unsigned long to match ioctl's parameter type.