pub fn tcgetpgrp<Fd: AsFd>(fd: Fd) -> Result<Pid>
tcgetpgrp(fd)—Get the terminal foreground process group.
tcgetpgrp(fd)
Also known as the TIOCGPGRP operation with ioctl.
TIOCGPGRP
ioctl