summaryrefslogtreecommitdiffstats
path: root/minui/graphics_fbdev.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2019-03-02 01:18:06 +0100
committerandroid-build-merger <android-build-merger@google.com>2019-03-02 01:18:06 +0100
commitdf2067d038b0ad7372cd83fce7da5eb9754cfd0d (patch)
treea9fda0ad47571634be7129c40cdde52ef33a15e0 /minui/graphics_fbdev.cpp
parentMerge "Use android::base::Pipe." am: 21cfc8b6f4 (diff)
parentMerge "Use O_CLOEXEC at a few places." (diff)
downloadandroid_bootable_recovery-df2067d038b0ad7372cd83fce7da5eb9754cfd0d.tar
android_bootable_recovery-df2067d038b0ad7372cd83fce7da5eb9754cfd0d.tar.gz
android_bootable_recovery-df2067d038b0ad7372cd83fce7da5eb9754cfd0d.tar.bz2
android_bootable_recovery-df2067d038b0ad7372cd83fce7da5eb9754cfd0d.tar.lz
android_bootable_recovery-df2067d038b0ad7372cd83fce7da5eb9754cfd0d.tar.xz
android_bootable_recovery-df2067d038b0ad7372cd83fce7da5eb9754cfd0d.tar.zst
android_bootable_recovery-df2067d038b0ad7372cd83fce7da5eb9754cfd0d.zip
Diffstat (limited to 'minui/graphics_fbdev.cpp')
-rw-r--r--minui/graphics_fbdev.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/minui/graphics_fbdev.cpp b/minui/graphics_fbdev.cpp
index 8d9c9741d..2584017d6 100644
--- a/minui/graphics_fbdev.cpp
+++ b/minui/graphics_fbdev.cpp
@@ -56,7 +56,7 @@ void MinuiBackendFbdev::SetDisplayedFramebuffer(size_t n) {
}
GRSurface* MinuiBackendFbdev::Init() {
- android::base::unique_fd fd(open("/dev/graphics/fb0", O_RDWR));
+ android::base::unique_fd fd(open("/dev/graphics/fb0", O_RDWR | O_CLOEXEC));
if (fd == -1) {
perror("cannot open fb0");
return nullptr;