aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ecore_x/xlib/ecore_x_vsync.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-04-11 09:45:26 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-04-11 09:45:26 +0900
commit9a03009364aa060e092741f188a355388202456b (patch)
treeadc04aa7c5219d3e15a7d2f099247088beb5c356 /src/lib/ecore_x/xlib/ecore_x_vsync.c
parenteio-model: Fixed concurrent access to filter_cb and monitoring empty directories (diff)
downloadefl-9a03009364aa060e092741f188a355388202456b.tar.gz
ecore x vsync - ensure drm fb is set to close on exec - intended
@fix - minor - fixes https://phab.enlightenment.org/T2138 as muc as efl can (dri card0 file)
Diffstat (limited to 'src/lib/ecore_x/xlib/ecore_x_vsync.c')
-rw-r--r--src/lib/ecore_x/xlib/ecore_x_vsync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ecore_x/xlib/ecore_x_vsync.c b/src/lib/ecore_x/xlib/ecore_x_vsync.c
index 435e173fb6..4109de23ad 100644
--- a/src/lib/ecore_x/xlib/ecore_x_vsync.c
+++ b/src/lib/ecore_x/xlib/ecore_x_vsync.c
@@ -452,7 +452,7 @@ _drm_init(int *flags)
}
snprintf(buf, sizeof(buf), "/dev/dri/card0");
if (stat(buf, &st) != 0) return 0;
- drm_fd = open(buf, O_RDWR);
+ drm_fd = open(buf, O_RDWR | O_CLOEXEC);
if (drm_fd < 0) return 0;
if (!getenv("ECORE_VSYNC_DRM_ALL"))