xserver/hw/xfree86/os-support
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
..
bsd Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
bus Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
hurd Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
linux systemd-logind: let the logind code decided whether to close an fd 2014-05-05 07:26:33 +10:00
misc Replace INCLUDES with AM_CPPFLAGS 2013-08-06 13:08:13 +10:00
shared xf86OpenSerial: Add support server managed fds 2014-03-03 08:13:56 +01:00
solaris Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
stub Replace INCLUDES with AM_CPPFLAGS 2013-08-06 13:08:13 +10:00
Makefile.am xfree86: Add stubs for os-support to help adding new architecture support 2011-10-15 21:18:47 -07:00
int10Defines.h Remove RCS tags. Fix Xprint makefile braindamage. 2006-07-21 17:56:00 -04:00
xf86OSpriv.h Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
xf86_OSlib.h Fix mouse header include on DragonFly and FreeBSD 2013-07-17 14:27:26 +10:00
xf86_OSproc.h Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00