tcsetpgrp
if (ttyfd >= 0 && tcsetpgrp(ttyfd, rootpid) < 0)
tcsetpgrp(ttyfd, rootpid);
tcsetpgrp(ttyfd, initialpgrp);
tcsetpgrp(ttyfd, pgrp);
if (tcsetpgrp(ttyfd, pgrp) < 0)
tcsetpgrp(1, child_pgrp);
int tcsetpgrp(int, pid_t);
int tcsetpgrp(int, pid_t);
tcsetpgrp(STDERR_FILENO, child_pid);
tcsetpgrp(STDERR_FILENO, getpgrp());
tcsetpgrp(STDERR_FILENO, child_pgrp);
tcsetpgrp(STDERR_FILENO, getpgrp());
error = tcsetpgrp(STDIN_FILENO, pgid);
error = tcsetpgrp(controlling_consinfo->fd,