From 2592d6591efba9fb5d8f76fdbf5add02568d1eb8 Mon Sep 17 00:00:00 2001 From: Andreas Heynig Date: Wed, 22 Jan 2020 19:36:57 +0100 Subject: [PATCH] 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 --- libweston/launcher-direct.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libweston/launcher-direct.c b/libweston/launcher-direct.c index 382ca49f7..c20d70f29 100644 --- a/libweston/launcher-direct.c +++ b/libweston/launcher-direct.c @@ -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));