chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sd-login: teach sd_pid_get_unit() proper handling of instantiated services
[elogind.git]
/
src
/
login
/
logind-session.c
diff --git
a/src/login/logind-session.c
b/src/login/logind-session.c
index 63ee75808b546f9ef668b380ebde57907c89d797..58c70c3dbfb840c6b7855a5dfdf4a2fe0e62a822 100644
(file)
--- 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);
"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);
fprintf(f,
"VTNR=%i\n",
s->vtnr);
@@
-270,7
+270,7
@@
int session_load(Session *s) {
seat_attach_session(o, 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);
int v;
k = safe_atoi(vtnr, &v);