9fc0f6
From 66cd858045170353359d05dd0b4d259d6059de72 Mon Sep 17 00:00:00 2001
9fc0f6
From: Michal Sekletar <msekleta@redhat.com>
9fc0f6
Date: Mon, 10 Mar 2014 18:22:55 +0100
9fc0f6
Subject: [PATCH] logind: save session after setting the stopping flag
9fc0f6
9fc0f6
---
9fc0f6
 src/login/logind-session.c | 3 +--
9fc0f6
 1 file changed, 1 insertion(+), 2 deletions(-)
9fc0f6
9fc0f6
diff --git a/src/login/logind-session.c b/src/login/logind-session.c
9fc0f6
index e519d35..3ab41e6 100644
9fc0f6
--- a/src/login/logind-session.c
9fc0f6
+++ b/src/login/logind-session.c
9fc0f6
@@ -682,10 +682,9 @@ int session_stop(Session *s) {
9fc0f6
         /* Kill cgroup */
9fc0f6
         r = session_stop_scope(s);
9fc0f6
 
9fc0f6
-        session_save(s);
9fc0f6
-
9fc0f6
         s->stopping = true;
9fc0f6
 
9fc0f6
+        session_save(s);
9fc0f6
         return r;
9fc0f6
 }
9fc0f6