evdev: reset the device fd after closing it
authorPeter Hutterer <peter.hutterer@who-t.net>
Fri, 21 Feb 2014 06:13:02 +0000 (16:13 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Fri, 21 Feb 2014 06:13:02 +0000 (16:13 +1000)
commitd31b1b7b70e6bcf5aec40cfa7577b420d5cae8a9
tree2df6c7472fecd2e00c3fe58e7da674c1586d1aa8
parent128f98c43b4b4da0b78b759ae8722249fc06e886
evdev: reset the device fd after closing it

A caller may have a reference to the device after closing it, make sure that
ref doesn't have a dangling fd so future attempts of reading from/writing to
the device fail.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/evdev.c