libweston/launcher-direct.c: do not fail if already in graphics mode
authorAndreas Heynig <Andreas.Heynig@meetwise.com>
Wed, 22 Jan 2020 18:36:57 +0000 (19:36 +0100)
committerDaniel Stone <daniels@collabora.com>
Mon, 17 Aug 2020 11:59:39 +0000 (11:59 +0000)
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>
libweston/launcher-direct.c

index 382ca49..c20d70f 100644 (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));