summaryrefslogtreecommitdiff
path: root/src/login/logind-session.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-01-03 21:47:54 +0100
committerLennart Poettering <lennart@poettering.net>2012-01-03 21:47:54 +0100
commitaddedec48ba0ffc4472ef6d3b5a45c9d4239f1cd (patch)
tree867929927cbe2ca2866511d81b5fa4e998531839 /src/login/logind-session.c
parentdc4b02006455a4dddeb6ccc1f6656c89d3ebd27c (diff)
logind: if we can't open /dev/tty0, assume there is no VT subsystem and don't pretend we could do VT switching
Diffstat (limited to 'src/login/logind-session.c')
-rw-r--r--src/login/logind-session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/login/logind-session.c b/src/login/logind-session.c
index 63ee75808b..58c70c3dbf 100644
--- a/src/login/logind-session.c
+++ b/src/login/logind-session.c
@@ -185,7 +185,7 @@ int session_save(Session *s) {
"SERVICE=%s\n",
s->service);
- if (s->seat && seat_is_vtconsole(s->seat))
+ if (s->seat && seat_can_multi_session(s->seat))
fprintf(f,
"VTNR=%i\n",
s->vtnr);
@@ -270,7 +270,7 @@ int session_load(Session *s) {
seat_attach_session(o, s);
}
- if (vtnr && s->seat && seat_is_vtconsole(s->seat)) {
+ if (vtnr && s->seat && seat_can_multi_session(s->seat)) {
int v;
k = safe_atoi(vtnr, &v);