richardphibel / rpms / systemd

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