Skip to main content

Module process_group

Module process_group 

Source
Expand description

Owned Unix process groups for test commands.

The leader must not be reaped outside this module until the group is retired. In particular, callers must not install a reaping SIGCHLD handler, SIG_IGN, or SA_NOCLDWAIT. Keeping an exited leader waitable reserves its PID until cleanup, so its group ID cannot refer to another group. Descendants that deliberately leave this group are outside its ownership boundary. Kernel signal permissions still apply, including when descendants change credentials.

Structs§

ProcessGroup 🔒
A group whose leader’s unreaped PID reserves the group ID until cleanup.

Functions§

leader_exited 🔒
Observe terminal presence without decoding real-time signals through nix’s closed Signal enum.
spawn 🔒
Configure group ownership in the child before it executes the command.