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