ecore_drm: Use CLOEXEC option when openning drm device

This commit is contained in:
Stefan Schmidt 2014-06-27 15:29:38 +02:00
parent 4c0f9da2b9
commit 017f2d34b5
1 changed files with 1 additions and 1 deletions

View File

@ -336,7 +336,7 @@ ecore_drm_device_open(Ecore_Drm_Device *dev)
/* check for valid device */
if ((!dev) || (!dev->drm.name)) return EINA_FALSE;
dev->drm.fd = open(dev->drm.name, O_RDWR);
dev->drm.fd = open(dev->drm.name, O_RDWR | O_CLOEXEC);
if (dev->drm.fd < 0) return EINA_FALSE;
DBG("Opened Device %s : %d", dev->drm.name, dev->drm.fd);