16 lines
463 B
Diff
16 lines
463 B
Diff
|
--- systemd-209/src/login/logind-session.c
|
||
|
+++ systemd-209/src/login/logind-session.c 2014-02-28 12:12:14.762736079 +0000
|
||
|
@@ -525,6 +525,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)
|