Function nix::unistd::tcgetpgrp

source ·
pub fn tcgetpgrp(fd: c_int) -> Result<Pid>
Available on crate features process and term only.
Expand description

Get the terminal foreground process group (see tcgetpgrp(3)).

Get the group process id (GPID) of the foreground process group on the terminal associated to file descriptor (FD).