ecore-drm: Fix failure of setting/closing evdev->fd which causes fd leak 86/53886/6
authorDuna Oh <duna.oh@samsung.com>
Thu, 10 Dec 2015 04:44:12 +0000 (13:44 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Mon, 14 Dec 2015 04:56:31 +0000 (20:56 -0800)
commita81fd0f2f57ae6b71703a9a76922f9ff13fdb9ab
treed8c175dd1f44a9b77063f89a25a404970cfb06a5
parent3b2c783d9c747bc5de33232426b3e75e7d57a75f
ecore-drm: Fix failure of setting/closing evdev->fd which causes fd leak

When a input device is plugged in, _cb_open_restricted() is called before creating evdev.
So setting fd value on evdev->fd was failed and also closing evdev->fd was invalid.
This commit has a eina_hash which has 'path-fd' pairs.

Signed-off-by: Duna Oh <duna.oh@samsung.com>
Change-Id: I8e230516edf1ef371158a0ded1569c77c5a27144
src/lib/ecore_drm/ecore_drm.c
src/lib/ecore_drm/ecore_drm_inputs.c
src/lib/ecore_drm/ecore_drm_launcher.c
src/lib/ecore_drm/ecore_drm_private.h