xserver/hw/xfree86/os-support/linux
Peter Hutterer 15460eaed2 systemd-logind: let the logind code decided whether to close an fd
We can only request one fd per device from systemd-logind. If a fd is re-used
by the same device, releasing the fd from one device doesn't mean we can close
it. The systemd code knows when it's really released, so let it close the fd.

Test case: xorg.conf section for an input device with hotplugging enabled.
evdev detects the duplicate and closes the hotplugged device, which closes the
fd. The other instance of evdev thinks the fd is still valid so now you're
playing a double lottery. First, which client(s) will get the evdev fd?
Second, which requests will be picked up by evdev and which ones will be
picked up by the client? You'll never know, but the fun is in finding out.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
2014-05-05 07:26:33 +10:00
..
int10 Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
Makefile.am systemd-logind: Add systemd-logind "core" 2014-03-03 08:13:55 +01:00
lnx_acpi.c Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
lnx_agp.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
lnx_apm.c Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
lnx_axp.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
lnx_bell.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
lnx_ev56.c Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
lnx_init.c linux: xf86OpenConsole: Don't detach from controlling tty when it is our vt 2014-03-03 08:13:54 +01:00
lnx_kmod.c xfree86 warning reduction 2014-01-12 10:14:49 -08:00
lnx_platform.c systemd-logind: let the logind code decided whether to close an fd 2014-05-05 07:26:33 +10:00
lnx_video.c xfree86: Fix a compiler warning on 64-bit. 2014-02-07 16:03:48 -08:00
systemd-logind.c systemd-logind: let the logind code decided whether to close an fd 2014-05-05 07:26:33 +10:00