summaryrefslogtreecommitdiff
path: root/src/logind-seat.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-06-21 20:43:34 +0200
committerLennart Poettering <lennart@poettering.net>2011-06-21 20:43:34 +0200
commitda11939561b1e6eeb1131b68dbf43042fd633a05 (patch)
tree56b654d78e646a0de6a0db4656da9b758e49258c /src/logind-seat.c
parente1c9c2d53606f987110b4215cf08c236af637ff1 (diff)
logind: send dbus signals when sessions/users/seats come and go
Diffstat (limited to 'src/logind-seat.c')
-rw-r--r--src/logind-seat.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/logind-seat.c b/src/logind-seat.c
index 751f59a48d..95c66dd712 100644
--- a/src/logind-seat.c
+++ b/src/logind-seat.c
@@ -314,6 +314,8 @@ int seat_start(Seat *s) {
s->started = true;
+ seat_send_signal(s, true);
+
return 0;
}
@@ -327,6 +329,8 @@ int seat_stop(Seat *s) {
log_info("Removed seat %s.", s->id);
+ seat_send_signal(s, false);
+
seat_stop_sessions(s);
unlink(s->state_file);