From: Colin Guthrie Date: Tue, 4 Sep 2012 00:37:27 +0000 (+0100) Subject: logind: Ensure the user, seat and session files are updated when the session is closing. X-Git-Tag: v190~127 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=23bd3b6263e4fd9c15cfb6c05e65fa425791374c logind: Ensure the user, seat and session files are updated when the session is closing. --- diff --git a/src/login/logind-session.c b/src/login/logind-session.c index 77462a8d1..9740e23a1 100644 --- a/src/login/logind-session.c +++ b/src/login/logind-session.c @@ -714,9 +714,11 @@ int session_stop(Session *s) { seat_set_active(s->seat, NULL); seat_send_changed(s->seat, "Sessions\0"); + seat_save(s->seat); } user_send_changed(s->user, "Sessions\0"); + user_save(s->user); s->started = false; @@ -870,6 +872,9 @@ void session_remove_fifo(Session *s) { assert_se(epoll_ctl(s->manager->epoll_fd, EPOLL_CTL_DEL, s->fifo_fd, NULL) == 0); close_nointr_nofail(s->fifo_fd); s->fifo_fd = -1; + + session_save(s); + user_save(s->user); } if (s->fifo_path) {