Skip to main content

Module command

Module command 

Source
Expand description

The commands runnerd runs (the doctor’s systemctl and gh, and gh auth token for the GitHub client), each in a process group of its own, so none outlives its deadline or the daemon: past its deadline, its whole group is killed, whatever its processes did with the pipes, and once the daemon stops, every group still running is killed and no command starts (ADRs 0132 and 0134).

It must not run anything its caller did not ask for, or signal a process it did not start.

Structs§

Running
The commands of this process: those running, and whether it stopped. Only its methods here write it.

Statics§

RUNNING
The daemon’s commands: the doctor’s and the GitHub client’s.

Functions§

output_within
command’s output, as Command::output gives it, with no input; with its group killed past deadline, which covers reading what it wrote too: a process it left behind holding its pipes does not hold the read.