efl/src/lib/ecore_drm
Duna Oh cb23fd2af2 ecore-drm: Fix failure of setting/closing evdev->fd which causes fd leak
Summary:
When a input device is plugged in, _cb_open_restricted() is called before creating evdev.
So setting fd value on evdev was failed in _cb_open_restricted() and also closing evdev->fd was invalid.
Using a eina_hash which has 'path-fd' pairs, we can find fd value after evdev is created.

@fix

Test Plan:
(1) Multiple input devices are connected. Their evdev->fd remains zero or initial value.
(2) When one of those devices are plugged out, fd leak would happen.

Reviewers: raster, zmike, gwanglim, stefan_schmidt, devilhorns, ManMower

Subscribers: cedric, jpeg, Jeon, input.hacker

Differential Revision: https://phab.enlightenment.org/D3428
2015-12-15 10:28:39 -05:00
..
Ecore_Drm.h ecore-drm: Add API function to set a new mode on an output 2015-05-13 14:42:15 -04:00
ecore_drm.c ecore-drm: Fix failure of setting/closing evdev->fd which causes fd leak 2015-12-15 10:28:39 -05:00
ecore_drm_dbus.c ecore-drm: Fix issue of checking improper eldbus message for errors 2015-02-17 16:19:55 -05:00
ecore_drm_device.c ecore-drm: Add logical pointer x, y variable in seat for reflecting multiple pointer's movement 2015-11-30 11:05:07 -05:00
ecore_drm_evdev.c ecore-drm: Add logical pointer x, y variable in seat for reflecting multiple pointer's movement 2015-11-30 11:05:07 -05:00
ecore_drm_fb.c ecore_drm: pass NULL to mmap() instead 0 for address 2015-11-10 16:34:13 +01:00
ecore_drm_inputs.c ecore-drm: Fix failure of setting/closing evdev->fd which causes fd leak 2015-12-15 10:28:39 -05:00
ecore_drm_launcher.c ecore-drm: Fix failure of setting/closing evdev->fd which causes fd leak 2015-12-15 10:28:39 -05:00
ecore_drm_logind.c ecore-drm: Add missing field initializers for vt_mode 2015-10-14 09:37:20 -04:00
ecore_drm_output.c ecore-drm: Fix setting proper output subpixel value 2015-06-23 11:11:29 -04:00
ecore_drm_private.h ecore-drm: Fix failure of setting/closing evdev->fd which causes fd leak 2015-12-15 10:28:39 -05:00
ecore_drm_sprites.c ecore-drm: add safety checks to all EAPI functions 2015-04-24 12:53:01 -04:00
ecore_drm_tty.c ecore-drm: Don't exit tty setup if tty is already in graphics mode 2015-10-30 09:28:10 -04:00