Function nix::unistd::setpgid

source ·
pub fn setpgid(pid: Pid, pgid: Pid) -> Result<()>
Expand description

Set a process group ID (see setpgid(2)).

Set the process group id (PGID) of a particular process. If a pid of zero is specified, then the pid of the calling process is used. Process groups may be used to group together a set of processes in order for the OS to apply some operations across the group.

setsid() may be used to create a new process group.