[systemd-devel] [PATCH 2/2] logind: Don't stop a running session manager from collecting a session

Djalal Harouni tixxdz at opendz.org
Fri Jan 3 05:19:21 PST 2014


As in commit 63966da86, the session manager will always be around, so
make sure that in function session_check_gc() we don't check it. This
gives the manager a chance to garbage-collect sessions.
---
 src/login/logind-session.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/login/logind-session.c b/src/login/logind-session.c
index dc4b3e1..a78d4dd 100644
--- a/src/login/logind-session.c
+++ b/src/login/logind-session.c
@@ -935,9 +935,6 @@ bool session_check_gc(Session *s, bool drop_not_started) {
         if (s->scope_job && manager_job_is_active(s->manager, s->scope_job))
                 return true;
 
-        if (s->scope && manager_unit_is_active(s->manager, s->scope))
-                return true;
-
         return false;
 }
 
-- 
1.8.3.1



More information about the systemd-devel mailing list