chiark / gitweb /
logind: if we can't open /dev/tty0, assume there is no VT subsystem and don't pretend...
[elogind.git] / src / login / logind-session.c
index 63ee75808b546f9ef668b380ebde57907c89d797..58c70c3dbfb840c6b7855a5dfdf4a2fe0e62a822 100644 (file)
@@ -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);