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>
dev
Andreas Heynig 5 years ago committed by Daniel Stone
parent 465ab2cd92
commit 2592d6591e
  1. 1
      libweston/launcher-direct.c

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

Loading…
Cancel
Save