[systemd-devel] [PATCH 08/11] Avoid abort due timeout at user service

Werner Fink werner at suse.de
Fri Jun 13 07:41:07 PDT 2014


It was seen only once, nevertheless this change does avoid the
assert on s->user->slice in session_start_scope()

---
 src/login/logind-session.c |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git src/login/logind-session.c src/login/logind-session.c
index fdeacb1..86ce418 100644
--- src/login/logind-session.c
+++ src/login/logind-session.c
@@ -560,6 +560,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)
-- 
1.7.9.2



More information about the systemd-devel mailing list