Skip to main content

record_groups

Function record_groups 

Source
pub fn record_groups(path: impl Into<PathBuf>)
Expand description

From now on keeps the id of each process group a Launcher spawned and this process has not reaped yet in the file at path, one per line, rewritten whole on each change, and marks every command a launcher builds with LEDGER_VARIABLE set to path. A supervisor that outlives this process, such as rig’s launcher, kills the groups listed once it died without stopping them, each only while its leader still carries the mark: a listed id that names another process by then, its own reaped, is left alone. A file that cannot be written lists nothing new.