diff options
author | Fedora systemd team <systemd-maint@redhat.com> | 2013-04-10 09:49:24 +0200 |
---|---|---|
committer | Michal Schmidt <mschmidt@redhat.com> | 2013-04-10 11:36:59 +0200 |
commit | 50fb97935d689a520251b2d543599be14bdfd0ed (patch) | |
tree | 11e5fa30d1d35461fb1ddc37fd2c587784487705 /src/udev/udev-builtin-uaccess.c | |
parent | b8b4d3dddc7611dce3bf28004b0375d661120c62 (diff) |
logind: avoid creating stale session state files
There were old session state files accumulating in /run/systemd/session.
They confused e.g. "reboot", which thought there were still users logged
in. The files got created like this:
session_stop(Session *s) ->
...
unlink(s->state_file);
...
seat_set_active(s->seat, NULL) ->
session_save(...); /* re-creates the state file we just
unlinked */
Fix it simply by clearing the s->started flag earlier to prevent
any further writes of the state file (session_save() checks the flag).
Diffstat (limited to 'src/udev/udev-builtin-uaccess.c')
0 files changed, 0 insertions, 0 deletions