valeriyvdovin / rpms / systemd

Forked from rpms/systemd 4 years ago
Clone

Blame SOURCES/0215-logind-save-user-state-after-stopping-the-session.patch

9fc0f6
From 34c3bd12815064d0d3820ac0b30c0952ba5fd1fe Mon Sep 17 00:00:00 2001
9fc0f6
From: Michal Sekletar <msekleta@redhat.com>
9fc0f6
Date: Mon, 10 Mar 2014 18:26:34 +0100
9fc0f6
Subject: [PATCH] logind: save user state after stopping the session
9fc0f6
9fc0f6
---
9fc0f6
 src/login/logind-session.c | 2 ++
9fc0f6
 1 file changed, 2 insertions(+)
9fc0f6
9fc0f6
diff --git a/src/login/logind-session.c b/src/login/logind-session.c
9fc0f6
index 3ab41e6..2a2a670 100644
9fc0f6
--- a/src/login/logind-session.c
9fc0f6
+++ b/src/login/logind-session.c
9fc0f6
@@ -685,6 +685,8 @@ int session_stop(Session *s) {
9fc0f6
         s->stopping = true;
9fc0f6
 
9fc0f6
         session_save(s);
9fc0f6
+        user_save(s);
9fc0f6
+
9fc0f6
         return r;
9fc0f6
 }
9fc0f6