ecore x vsync - ensure drm fb is set to close on exec - intended

@fix - minor - fixes T2138 as muc as efl can (dri card0 file)
This commit is contained in:
Carsten Haitzler 2015-04-11 09:45:26 +09:00
parent cdd597cb56
commit 9a03009364
1 changed files with 1 additions and 1 deletions

View File

@ -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"))