forked from enlightenment/efl
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
This commit is contained in:
parent
f7ae5f28d4
commit
ccbcf3db0b
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue