xserver/hw/xfree86/os-support/linux
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
..
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 Remove config_odev_add_*attribute checks in various places 2014-03-12 08:50:05 +01: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: Monitor systemd-logind going away 2014-03-26 10:05:12 +10:00