forked from pool/systemd
701179bcff
- Update to new upstream release 221 OBS-URL: https://build.opensuse.org/request/show/313261 OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=875
22 lines
619 B
Diff
22 lines
619 B
Diff
---
|
|
src/login/logind-session.c | 6 ++++++
|
|
1 file changed, 6 insertions(+)
|
|
|
|
Index: systemd-221/src/login/logind-session.c
|
|
===================================================================
|
|
--- systemd-221.orig/src/login/logind-session.c
|
|
+++ systemd-221/src/login/logind-session.c
|
|
@@ -548,6 +548,12 @@ int session_start(Session *s) {
|
|
if (r < 0)
|
|
return r;
|
|
|
|
+ if (!s->user->slice) {
|
|
+ if (errno)
|
|
+ return -errno;
|
|
+ return -ESTALE;
|
|
+ }
|
|
+
|
|
/* Create cgroup */
|
|
r = session_start_scope(s);
|
|
if (r < 0)
|