summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm/ecore_drm_launcher.c
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2015-04-30 14:31:07 -0400
committerChris Michael <cp.michael@samsung.com>2015-04-30 14:31:14 -0400
commitccbcf3db0b99c622b834897538234de3bf8e2ec4 (patch)
tree1a7a1109489d830319beed25dcabfced58a38628 /src/lib/ecore_drm/ecore_drm_launcher.c
parentf7ae5f28d46931d90405400080b8c6ff07f6acaf (diff)
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
Diffstat (limited to 'src/lib/ecore_drm/ecore_drm_launcher.c')
-rw-r--r--src/lib/ecore_drm/ecore_drm_launcher.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/ecore_drm/ecore_drm_launcher.c b/src/lib/ecore_drm/ecore_drm_launcher.c
index 35b8ffcd33..2baa550bbf 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)
165void 165void
166_ecore_drm_launcher_device_close(const char *device, int fd) 166_ecore_drm_launcher_device_close(const char *device, int fd)
167{ 167{
168 if ((logind) && (device)) 168 if ((logind) && (device)) _ecore_drm_logind_device_close(device);
169 return _ecore_drm_logind_device_close(device);
170 169
171 close(fd); 170 close(fd);
172} 171}