devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=ccbcf3db0b99c622b834897538234de3bf8e2ec4

commit ccbcf3db0b99c622b834897538234de3bf8e2ec4
Author: Derek Foreman <der...@osg.samsung.com>
Date:   Thu Apr 30 14:31:07 2015 -0400

    ecore-drm: close fd when asked to close fd
    
    Summary:
    the logind device close function just lets logind revoke fd permissions
    but doesn't actually close the (now useless) fd.
    
    @fix
    
    Reviewers: devilhorns
    
    Reviewed By: devilhorns
    
    Subscribers: cedric
    
    Differential Revision: https://phab.enlightenment.org/D2457
---
 src/lib/ecore_drm/ecore_drm_launcher.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/lib/ecore_drm/ecore_drm_launcher.c 
b/src/lib/ecore_drm/ecore_drm_launcher.c
index 35b8ffc..2baa550 100644
--- a/src/lib/ecore_drm/ecore_drm_launcher.c
+++ b/src/lib/ecore_drm/ecore_drm_launcher.c
@@ -165,8 +165,7 @@ _ecore_drm_launcher_device_open_no_pending(const char 
*device, int flags)
 void
 _ecore_drm_launcher_device_close(const char *device, int fd)
 {
-   if ((logind) && (device))
-     return _ecore_drm_logind_device_close(device);
+   if ((logind) && (device)) _ecore_drm_logind_device_close(device);
 
    close(fd);
 }

-- 


Reply via email to