mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-25 21:25:59 +07:00
logind: Ensure the user, seat and session files are updated when the session is closing.
This commit is contained in:
parent
2dc8f41a2b
commit
23bd3b6263
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user