On Fri, 4 Apr 2025 at 09:46, Chris Hofstaedtler <z...@debian.org> wrote:

> Maybe it needs some additional work to fully function
> with current systemd versions.  IIRC procps also only recently added
> some new code to deal with new systemd behaviours.
>
That's right, we were counting sessions, not user sessions. There's an
explicit check for it now.

There's also w terminal mode that displays terminals not users, utmp
kinda-sorta did this
inconsistently. w drives it from the processes tty field so should capture
them all.

PS: I never understood why there's both w and who, and why they are
> different implementations.
>
Ancient historical reasons that pre-date my involvement (< 1997). See also:
why so many *kills

 - Craig

Reply via email to