Commit 23bd3b62 authored by Colin Guthrie's avatar Colin Guthrie Committed by Lennart Poettering

logind: Ensure the user, seat and session files are updated when the session is closing.

parent 2dc8f41a
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment