summaryrefslogtreecommitdiff
path: root/src/logind-user.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-06-29 00:06:04 +0200
committerLennart Poettering <lennart@poettering.net>2011-06-29 00:06:04 +0200
commit932e3ee76ea0a9d28902f694ad1873e37532da35 (patch)
tree5e6017ffe793879918dd60bbb7de860fd72054e7 /src/logind-user.c
parentfde78a3ac01db57a384e5936bf2c033dcdeae494 (diff)
logind: use named pipes instead of fifos to keep track of sessions so that we can reconnect later
Diffstat (limited to 'src/logind-user.c')
-rw-r--r--src/logind-user.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/logind-user.c b/src/logind-user.c
index 177e88200a..4335bf6462 100644
--- a/src/logind-user.c
+++ b/src/logind-user.c
@@ -459,6 +459,9 @@ int user_check_gc(User *u) {
assert(u);
+ if (!u->started)
+ return 0;
+
if (u->sessions)
return 1;