ecore_drm: Use CLOEXEC option when openning drm device
authorStefan Schmidt <s.schmidt@samsung.com>
Fri, 27 Jun 2014 13:29:38 +0000 (15:29 +0200)
committerStefan Schmidt <s.schmidt@samsung.com>
Mon, 30 Jun 2014 08:13:42 +0000 (10:13 +0200)
src/lib/ecore_drm/ecore_drm_device.c

index 5df3918..a352453 100644 (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);