2015-06-23 14:56:50 +02:00
|
|
|
---
|
|
|
|
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) {
|
2014-02-28 18:10:52 +01:00
|
|
|
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)
|