xserver-multidpi/hw/xfree86/os-support
Hans de Goede dc48bd653c systemd-logind: Monitor systemd-logind going away
When we're using server managed-fds through systemd-logind, systemd-logind
*must* keep running while we are using it, as it does things like drmSetMaster
and drmDropMaster for us on vt-switch.

On a systemd-logind restart, we cannot simply re-connect since we will then
get a different fd for the /dev/dri/card# node, and we've tied a lot of
state to the old fd. I've discussed this with the systemd people, and in the
future there may be a restart mechanism were systemd-logind passed fds from
the old logind to the new logind. But for now there answer is simply:
"Don't restart systemd-logind", and there never really is a good reason to
restart it.

So to ensure unpleasentness if people do decide to restart systemd-logind
anyways (or when it crashes), monitor logind going away and make this a fatal
error. This avoids getting a hard-hung machine on the next vt-switch and will
hopefully quickly educate users to not restart systemd-logind while they have
an X session using it active.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-03-26 10:05:12 +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: Monitor systemd-logind going away 2014-03-26 10:05:12 +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
int10Defines.h Remove RCS tags. Fix Xprint makefile braindamage. 2006-07-21 17:56:00 -04:00
Makefile.am xfree86: Add stubs for os-support to help adding new architecture support 2011-10-15 21:18:47 -07: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
xf86OSpriv.h Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00