anitazha / rpms / systemd

Forked from rpms/systemd 3 years ago
Clone
Blob Blame History Raw
From 34c3bd12815064d0d3820ac0b30c0952ba5fd1fe Mon Sep 17 00:00:00 2001
From: Michal Sekletar <msekleta@redhat.com>
Date: Mon, 10 Mar 2014 18:26:34 +0100
Subject: [PATCH] logind: save user state after stopping the session

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

diff --git a/src/login/logind-session.c b/src/login/logind-session.c
index 3ab41e6..2a2a670 100644
--- a/src/login/logind-session.c
+++ b/src/login/logind-session.c
@@ -685,6 +685,8 @@ int session_stop(Session *s) {
         s->stopping = true;
 
         session_save(s);
+        user_save(s);
+
         return r;
 }