xserver/hw/xfree86/common
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
..
.gitignore .gitignore: use common defaults with custom section #24239 2009-11-11 21:40:20 -08:00
Makefile.am Replace INCLUDES with AM_CPPFLAGS 2013-08-06 13:08:13 +10:00
compiler.h Fix hw/xfree86/common/compiler.h for mips64 2014-04-21 22:02:32 -07:00
dgaproc.h hw/xfree86: Lots of constant string support 2014-01-12 10:14:48 -08:00
extramodes Remove some default modes that really shouldn't be in the default set. 2008-06-24 10:40:36 -04:00
fourcc.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
modeline2c.awk Remove some OS/2 leftovers. 2009-04-06 10:58:47 -04:00
vesamodes Fix standard VESA modes. 2006-11-03 14:06:32 -08:00
vidmodeproc.h Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
xaarop.h xfree86: Drop some dead XAA decls from SDK headers 2012-07-25 14:03:31 -07:00
xf86.h xf86Events: add Enable/DisableInputDeviceForVTSwitch functions 2014-01-29 15:29:56 -08:00
xf86AutoConfig.c xfree86/common: Warning fixes. Mostly const string handling. 2014-01-12 10:14:48 -08:00
xf86Build.h.in Print the build time as well as the date if we can. 2007-06-04 02:03:44 -04:00
xf86Bus.c xfree86: allow fallback to PCI bus probe for graphics devices on non-seat0 X servers (#66851) 2014-05-01 08:19:18 +10:00
xf86Bus.h Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
xf86Config.c xfree86: add new key MatchSeat to xorg.conf sections "Device", "Screen", and "ServerLayout" 2014-05-01 08:19:19 +10:00
xf86Config.h Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
xf86Configure.c xfree86: use xnfstrdup in the Xorg -configure code 2014-02-10 07:02:38 +10:00
xf86Cursor.c mipointer: Remove EnqueueEvent from miPointerScreenFuncRec 2013-09-10 13:28:23 -04:00
xf86DGA.c Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
xf86DPMS.c Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
xf86Events.c Set a flag property on the root window to say if the X server VT is active 2014-04-03 16:46:20 -07:00
xf86Extensions.c miinitext: introduce LoadExtensionList() to replace over LoadExtension() 2014-03-25 16:00:17 -07:00
xf86Extensions.h xf86: Re-export extension disable flags 2012-07-16 18:24:49 -07:00
xf86Globals.c configure: Change DEFAULT_LOGPREFIX to really be a filename prefix 2014-04-01 17:14:40 +10:00
xf86Helper.c xf86LogInit: log to XDG_DATA_HOME when not running as root 2014-04-03 14:17:35 +10:00
xf86InPriv.h xfree86/common: Warning fixes. Mostly const string handling. 2014-01-12 10:14:48 -08:00
xf86Init.c Set a flag property on the root window to say if the X server VT is active 2014-04-03 16:46:20 -07:00
xf86Mode.c hw/xfree86: More const declarations for strings 2014-01-12 10:14:49 -08:00
xf86Module.h Add a return value to load_cursor_argb() to allow it to report failure 2014-04-03 16:46:55 -07:00
xf86Opt.h xfree86/common: Warning fixes. Mostly const string handling. 2014-01-12 10:14:48 -08:00
xf86Option.c xfree86/common: Warning fixes. Mostly const string handling. 2014-01-12 10:14:48 -08:00
xf86Optionstr.h hw/xfree86: Lots of constant string support 2014-01-12 10:14:48 -08:00
xf86PM.c Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
xf86PciInfo.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86Priv.h Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
xf86Privstr.h Set a flag property on the root window to say if the X server VT is active 2014-04-03 16:46:20 -07:00
xf86RandR.c DDX/Randr: Avoid server crash when xrandr SetConfig is called while switched away 2013-10-31 18:36:17 -07:00
xf86VGAarbiter.c Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
xf86VGAarbiter.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86VGAarbiterPriv.h Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
xf86VidMode.c Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
xf86Xinput.c systemd-logind: let the logind code decided whether to close an fd 2014-05-05 07:26:33 +10:00
xf86Xinput.h systemd-logind: Add delayed input device probing 2014-03-03 08:13:55 +01:00
xf86cmap.c Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
xf86cmap.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86fbBus.c xfree86: use udev to provide device enumeration for kms devices (v10) 2012-07-06 10:20:19 +01:00
xf86fbman.c xfree86: Fix -Wshadow warnings 2014-01-22 19:56:31 -08:00
xf86fbman.h Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
xf86noBus.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86pciBus.c Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
xf86pciBus.h xfree86/common: Warning fixes. Mostly const string handling. 2014-01-12 10:14:48 -08:00
xf86platformBus.c systemd-logind: let the logind code decided whether to close an fd 2014-05-05 07:26:33 +10:00
xf86platformBus.h config_odev*: Use XNF alloc functions 2014-03-12 08:50:05 +01:00
xf86sbusBus.c xf86SbusCmapLoadPalette: Delay malloc until needed, avoiding leak on error 2013-04-24 14:22:36 -07:00
xf86sbusBus.h Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
xf86str.h Require video drivers to report that they support server managed fds 2014-03-10 09:08:46 +01:00
xf86vmode.c Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
xf86xv.c Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
xf86xv.h Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
xf86xvmc.c xf86XvMCScreenInit: Avoid leak if dixRegisterPrivateKey fails 2013-02-05 18:34:57 -08:00
xf86xvmc.h hw/xfree86: Lots of constant string support 2014-01-12 10:14:48 -08:00
xf86xvpriv.h xfree86: fix new warnings introduced in rebase. 2012-06-05 10:33:23 -07:00
xisb.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xisb.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xorgHelper.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xorgVersion.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00