pub fn set_process_group() -> Result<()>
Put the calling process into its own process group.
Intended for use in pre_exec so the child becomes the group leader.
pre_exec