dcavalca / rpms / systemd

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