Function tcsetpgrp

pub fn tcsetpgrp<F: AsFd>(fd: F, pgrp: Pid) -> Result<()>

Set the terminal foreground process group (see tcsetpgrp(3)).

Set the process group id (PGID) to the foreground process group on the terminal associated to file descriptor (FD).