summaryrefslogtreecommitdiff
path: root/src/login/logind-user.c
diff options
context:
space:
mode:
authorSven Eden <yamakuzure@gmx.net>2017-07-26 10:26:15 +0200
committerSven Eden <yamakuzure@gmx.net>2017-07-26 10:26:15 +0200
commitf3f6ae7c983865ea37e8ddfbd676586e55280f1e (patch)
tree7ae78f62d75d628aa00d800b8ded87fb2e1ab708 /src/login/logind-user.c
parent7e17c59e6b33219e1d478a74852a64d4c726d76b (diff)
Prep v234: Re-add user/session to the gc_queue when stopping.
If manager_gc() does not find the user/session, their respective finalize_*() method is never called, leaving stale state files in /run/systemd/sessions and run/systemd/users.
Diffstat (limited to 'src/login/logind-user.c')
-rw-r--r--src/login/logind-user.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/login/logind-user.c b/src/login/logind-user.c
index b8abc6af0..ae1d8b6bd 100644
--- a/src/login/logind-user.c
+++ b/src/login/logind-user.c
@@ -613,6 +613,10 @@ int user_stop(User *u, bool force) {
user_save(u);
+#if 1 /// elogind must queue this user again
+ user_add_to_gc_queue(u);
+#endif // 1
+
return r;
}