Lines Matching refs:pgrp
111 static int tcsetpgrp(int fd, pid_t pgrp);
116 pid_t pgrp; in tcgetpgrp() local
117 if (ioctl(fd, TIOCGPGRP, (char *)&pgrp) == -1) in tcgetpgrp()
120 return pgrp; in tcgetpgrp()
126 return ioctl(fd, TIOCSPGRP, (char *)&pgrp); in tcsetpgrp()
869 int pgrp; in forkparent() local
873 pgrp = pid; in forkparent()
875 pgrp = jp->ps[0].pid; in forkparent()
878 (void)setpgid(pid, pgrp); in forkparent()
899 int pgrp; in forkchild() local
915 pgrp = getpid(); in forkchild()
917 pgrp = jp->ps[0].pid; in forkchild()
920 (void)setpgid(0, pgrp); in forkchild()
922 if (tcsetpgrp(ttyfd, pgrp) == -1) in forkchild()