diff options
author | Tao Bao <tbao@google.com> | 2019-03-02 01:14:07 +0100 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2019-03-02 01:14:07 +0100 |
commit | 4e95d7503ede20d6149dc27c5defb9d86d3bfa19 (patch) | |
tree | a9fda0ad47571634be7129c40cdde52ef33a15e0 /minui/graphics_drm.cpp | |
parent | Merge "Use android::base::Pipe." (diff) | |
parent | Merge "Use O_CLOEXEC at a few places." (diff) | |
download | android_bootable_recovery-4e95d7503ede20d6149dc27c5defb9d86d3bfa19.tar android_bootable_recovery-4e95d7503ede20d6149dc27c5defb9d86d3bfa19.tar.gz android_bootable_recovery-4e95d7503ede20d6149dc27c5defb9d86d3bfa19.tar.bz2 android_bootable_recovery-4e95d7503ede20d6149dc27c5defb9d86d3bfa19.tar.lz android_bootable_recovery-4e95d7503ede20d6149dc27c5defb9d86d3bfa19.tar.xz android_bootable_recovery-4e95d7503ede20d6149dc27c5defb9d86d3bfa19.tar.zst android_bootable_recovery-4e95d7503ede20d6149dc27c5defb9d86d3bfa19.zip |
Diffstat (limited to 'minui/graphics_drm.cpp')
-rw-r--r-- | minui/graphics_drm.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/minui/graphics_drm.cpp b/minui/graphics_drm.cpp index 765e2625a..7b2eed15d 100644 --- a/minui/graphics_drm.cpp +++ b/minui/graphics_drm.cpp @@ -285,7 +285,7 @@ GRSurface* MinuiBackendDrm::Init() { /* Consider DRM devices in order. */ for (int i = 0; i < DRM_MAX_MINOR; i++) { auto dev_name = android::base::StringPrintf(DRM_DEV_NAME, DRM_DIR_NAME, i); - android::base::unique_fd fd(open(dev_name.c_str(), O_RDWR)); + android::base::unique_fd fd(open(dev_name.c_str(), O_RDWR | O_CLOEXEC)); if (fd == -1) continue; /* We need dumb buffers. */ |