Re: [PATCH libinput 2/4] Move closing the device fd into evdev.c

2014-02-05 Thread Jonas Ã…dahl
On Tue, Feb 04, 2014 at 07:22:33AM +1000, Peter Hutterer wrote: > evdev_device_remove() already calls close(device->fd). Move the > close_restricted call there to avoid one privileged call in the backend and > one in the device. Now we have open_restricted in path.c, udev-seat.c, and close_restric

[PATCH libinput 2/4] Move closing the device fd into evdev.c

2014-02-03 Thread Peter Hutterer
evdev_device_remove() already calls close(device->fd). Move the close_restricted call there to avoid one privileged call in the backend and one in the device. Signed-off-by: Peter Hutterer --- src/evdev.c | 2 +- src/path.c | 1 - src/udev-seat.c | 3 --- 3 files changed, 1 insertion(+)