Lines Matching refs:pgrp
4055 xtcsetpgrp(int fd, pid_t pgrp) in xtcsetpgrp() argument
4057 if (tcsetpgrp(fd, pgrp)) in xtcsetpgrp()
4074 int pgrp; in setjobctl() local
4100 pgrp = tcgetpgrp(fd); in setjobctl()
4101 if (pgrp < 0) { in setjobctl()
4107 if (pgrp == getpgrp()) in setjobctl()
4111 initialpgrp = pgrp; in setjobctl()
4116 pgrp = rootpid; in setjobctl()
4117 setpgid(0, pgrp); in setjobctl()
4118 xtcsetpgrp(fd, pgrp); in setjobctl()
4122 pgrp = initialpgrp; in setjobctl()
4125 tcsetpgrp(fd, pgrp); in setjobctl()
4126 setpgid(0, pgrp); in setjobctl()
5238 pid_t pgrp; in forkchild() local
5241 pgrp = getpid(); in forkchild()
5243 pgrp = jp->ps[0].ps_pid; in forkchild()
5245 setpgid(0, pgrp); in forkchild()
5247 xtcsetpgrp(ttyfd, pgrp); in forkchild()
5305 int pgrp; in forkparent() local
5308 pgrp = pid; in forkparent()
5310 pgrp = jp->ps[0].ps_pid; in forkparent()
5312 setpgid(pid, pgrp); in forkparent()