decisions DECIDED

226. pidwait takes tids and composes with pgrep, because a program does one thing

calef, 2026-09-26 (UTC), on milestone 126 (the procps package: who else is running)'s pidwait fork: "D." And the principle behind it, in his words: "One thing I like about unix is that a program does one and only one thing." (Section number provisional until the merge queue lands it.)

The question

How pidwait ships. Upstream pidwait PATTERN finds processes by pattern and waits until they exit. Section 4 of notes/process-view/remaining-procps-programs.md found that a pattern-taking pidwait holds exactly pgrep's authority, so milestone 281 (watch holds exactly what ps holds)'s rule said it was not a program, and recommended a wait mode on pgrep.

The decision

Option D. pidwait takes tids, not a pattern, and waits until each has exited. It composes with pgrep the way FreeBSD's pwait(1) does:

pidwait $(pgrep foo)

It is a separate program. Milestone 281's rule is satisfied because the authority differs: pgrep enumerates a domain, and pidwait only observes the exit of tids it was named.

calef's principle is the reason, and it is expected to shape the remaining procps rows: a program does one and only one thing. Finding processes is one thing and waiting for them is another.

Refused

Prior art

Each was offered from memory and then read against a primary source on 2026-09-26.

So D is the Solaris and FreeBSD shape, and C is the Linux one.

Open for the building lane

These are not part of the ruling. The tree was checked for each on 2026-09-26.

How reversible it is

Nothing is built, so it is cheap to revisit. The expensive part is the wait primitive above, which is a wire fact and is decided separately when a lane proposes it.