After a session has been logged out and all tasks are stopped, that session should no longer exist in loginctl.
Unexpected behaviour you saw
Logged out sessions still show up in loginctl.
In the following example, sessions 8, 10, and c3 are already logged out. Session 8 is a Plasma Wayland session, logged in through SDDM. Session 10 is a TTY session, created by C-A-F4 and logging in there.
Additional program output to the terminal or log subsystem illustrating the issue
% journalctl -b -u systemd-logind | grep -v 'Watching system buttons on'
Mar 09 16:31:25 hitori systemd[1]: Starting User Login Management...
Mar 09 16:31:25 hitori systemd-logind[569]: New seat seat0.
Mar 09 16:31:25 hitori systemd[1]: Started User Login Management.
Mar 09 16:31:27 hitori systemd-logind[569]: New session c1 of user sddm.
Mar 09 16:33:43 hitori systemd-logind[569]: New session 2 of user hexchain.
Mar 09 16:33:43 hitori systemd-logind[569]: Session c1 logged out. Waiting for processes to exit.
Mar 09 16:33:43 hitori systemd-logind[569]: Removed session c1.
Mar 09 16:33:59 hitori systemd-logind[569]: New session c2 of user sddm.
Mar 09 16:34:04 hitori systemd-logind[569]: New session 5 of user thc.
Mar 09 16:34:04 hitori systemd-logind[569]: Session c2 logged out. Waiting for processes to exit.
Mar 09 16:34:04 hitori systemd-logind[569]: Removed session c2.
Mar 09 22:18:23 hitori systemd-logind[569]: Session 5 logged out. Waiting for processes to exit.
Mar 09 22:18:23 hitori systemd-logind[569]: Removed session 5.
Mar 10 10:41:35 hitori systemd-logind[569]: New session c3 of user sddm.
Mar 10 10:41:40 hitori systemd-logind[569]: New session 8 of user thc.
Mar 10 10:41:40 hitori systemd-logind[569]: Session c3 logged out. Waiting for processes to exit.
Mar 10 14:26:17 hitori systemd-logind[569]: Session 8 logged out. Waiting for processes to exit.
Mar 10 14:52:11 hitori systemd-logind[569]: New session 10 of user hexchain.
Mar 10 14:52:15 hitori systemd-logind[569]: Session 10 logged out. Waiting for processes to exit.
The text was updated successfully, but these errors were encountered:
systemd version the issue has been seen with
253.1
Used distribution
Arch Linux
Linux kernel version used
6.2.1-arch1-1
CPU architectures issue was seen on
x86_64
Component
systemd-logind
Expected behaviour you didn't see
After a session has been logged out and all tasks are stopped, that session should no longer exist in
loginctl.Unexpected behaviour you saw
Logged out sessions still show up in
loginctl.In the following example, sessions 8, 10, and c3 are already logged out. Session 8 is a Plasma Wayland session, logged in through SDDM. Session 10 is a TTY session, created by C-A-F4 and logging in there.
Steps to reproduce the problem
I haven't figured out a stable way to reproduce, sorry.
The desktop manager in use is sddm/sddm@5341b06.
Additional program output to the terminal or log subsystem illustrating the issue
The text was updated successfully, but these errors were encountered: