diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2019-03-03 01:15:15 +0100 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2019-03-03 01:15:15 +0100 |
commit | a0e4dfb3ed03ac87e825ba82d388ea7301ab64d8 (patch) | |
tree | 8824f5cd4467003dd91191b087eda990d0af04fd /minui/events.cpp | |
parent | Snap for 5339364 from 4be5562ae99cee36edd0b166b438fd0b65bf797e to qt-release (diff) | |
parent | Merge "Use O_CLOEXEC at a few places." am: e3857ca43e am: 4e95d7503e (diff) | |
download | android_bootable_recovery-a0e4dfb3ed03ac87e825ba82d388ea7301ab64d8.tar android_bootable_recovery-a0e4dfb3ed03ac87e825ba82d388ea7301ab64d8.tar.gz android_bootable_recovery-a0e4dfb3ed03ac87e825ba82d388ea7301ab64d8.tar.bz2 android_bootable_recovery-a0e4dfb3ed03ac87e825ba82d388ea7301ab64d8.tar.lz android_bootable_recovery-a0e4dfb3ed03ac87e825ba82d388ea7301ab64d8.tar.xz android_bootable_recovery-a0e4dfb3ed03ac87e825ba82d388ea7301ab64d8.tar.zst android_bootable_recovery-a0e4dfb3ed03ac87e825ba82d388ea7301ab64d8.zip |
Diffstat (limited to 'minui/events.cpp')
-rw-r--r-- | minui/events.cpp | 2 |
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. |