xserver/hw/xfree86/os-support/linux
Hans de Goede 88f22fc5da linux: Do not call FatalError from xf86CloseConsole
FatalError ends up calling xf86CloseConsole itself, so calling FatalError
from within xf86CloseConsole is not a good idea.

Make switch_to log errors using xf86Msg(X_WARNING, ...) and return success
(or failure).

This makes switch_to match the other error checking done in xf86CloseConsole
which all logs warnings and continues.

Add checking of the return value in xf86OpenConsole and call
FatalError there when switch_to fails, to preserve the error-handling
behavior of xf86OpenConsole.

BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1269210
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
(cherry picked from commit 2092f12a24)
2015-10-26 12:20:52 -04:00
..
int10 int10: Fix error check for pci_device_map_legacy 2015-06-03 09:05:35 -04:00
lnx_acpi.c Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
lnx_agp.c Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
lnx_apm.c Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
lnx_bell.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
lnx_ev56.c xfree86: Remove MMIO_ONB* and friends 2014-07-28 12:19:01 -07:00
lnx_init.c linux: Do not call FatalError from xf86CloseConsole 2015-10-26 12:20:52 -04:00
lnx_kmod.c Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
lnx_platform.c config: Replace OdevAttributes linked list with struct 2014-07-17 17:10:48 -07:00
lnx_video.c xfree86: Clean up some more alpha awareness 2014-09-16 11:58:53 -04:00
Makefile.am xfree86: Clean up some more alpha awareness 2014-09-16 11:58:53 -04:00
systemd-logind.c systemd-logind: don't second guess D-Bus default timeout 2015-06-03 09:05:37 -04:00