libweston/launcher-direct.c: do not fail if already in graphics mode

In case of a crash tty remains in graphic mode. This change allows to restart weston without
taking care of the actual tty mode.

Signed-off-by: ahe <Andreas.Heynig@meetwise.com>
This commit is contained in:
Andreas Heynig 2020-01-22 19:36:57 +01:00 committed by Daniel Stone
parent 465ab2cd92
commit 2592d6591e

View File

@ -160,7 +160,6 @@ setup_tty(struct launcher_direct *launcher, int tty)
if (kd_mode != KD_TEXT) {
weston_log("%s is already in graphics mode, "
"is another display server running?\n", tty_device);
goto err_close;
}
ioctl(launcher->tty, VT_ACTIVATE, minor(buf.st_rdev));