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:
parent
465ab2cd92
commit
2592d6591e
@ -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…
Reference in New Issue
Block a user