summaryrefslogtreecommitdiff
path: root/src/logind-user.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-06-29 03:48:16 +0200
committerLennart Poettering <lennart@poettering.net>2011-06-29 03:48:16 +0200
commit4a4b033ff285f1eed2085a87b5b0c0ad6c73d166 (patch)
treedb980dd6ba5ce8ad5320fd7093778974d71a0bdc /src/logind-user.c
parentb668e06428a996348f81b352db3a1084a4e9adf5 (diff)
logind: when initializing drop sessions that are unreferenced
Diffstat (limited to 'src/logind-user.c')
-rw-r--r--src/logind-user.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/logind-user.c b/src/logind-user.c
index 3076ed1573..dacf148f78 100644
--- a/src/logind-user.c
+++ b/src/logind-user.c
@@ -457,13 +457,13 @@ int user_get_idle_hint(User *u, dual_timestamp *t) {
return idle_hint;
}
-int user_check_gc(User *u) {
+int user_check_gc(User *u, bool drop_not_started) {
int r;
char *p;
assert(u);
- if (!u->started)
+ if (drop_not_started && !u->started)
return 0;
if (u->sessions)