681. w: who is logged in, and what they are running
Title and slug are drafts.
Raised by milestone 126 (the procps package). w is a milestone of its own so that 126 closes on
what it built.
A tid has no name, and w's WHAT column is a name.
What is owed
Upstream w prints who is logged in and what each of them is running, with idle and CPU time per
session. Measured against the tree on 2026-09-26, in section 2 of
notes/process-view/remaining-procps-programs.md:
- What they are running needs a name for a tid. DECISIONS §148 (a supervisor restarts by asking,
and resolves by asking the kernel) has a supervisor learn a dead thread's label from the death
message. So this block's decision dependency is
unwritten, not 148: R3 tells only the supervisor which thread died, and a viewer such aswneeds a different answer that has not been written yet. - Who is logged in:
components/src/login.rsruns one session at a time on one terminal, so awtoday would always print one row. - CPU time exists since milestone 282 (a thread's CPU time).
A w built before both would demonstrate nothing a reader could not see by looking at the terminal.
Index row
w prints who is logged in and what they are running, but a tid has no name and login serves one session at a time. Proposed: build w once a tid has a name a viewer can read, which DECISIONS §148 (a supervisor restarts by asking, and resolves by asking the kernel) does not yet give.