Lines Matching defs:pgrp
1737 * -1: leave tty alone; inherit pgrp from parent
1748 pid_t pgrp;
1793 pgrp = pcurrjob ? pcurrjob->p_jobid : getpid();
1826 pgetty(wanttty, pgrp);
1867 pgrp = pcurrjob ? pcurrjob->p_jobid : pid;
1868 if (setpgid(pid, pgrp) == -1 && errno == EPERM) {
1874 (void) setpgid(pid, pgrp = pid);
1919 setttypgrp(int pgrp)
1926 * pgrp ourselves. If that happens, then the process will be still
1934 if (tcgetpgrp(FSHTTY) != pgrp) {
1945 (void) tcsetpgrp(FSHTTY, pgrp);
1963 pgetty(int wanttty, pid_t pgrp)
1970 jobdebug_xprintf(("wanttty %d pid %d opgrp%d pgrp %d tpgrp %d\n",
1971 wanttty, (int)getpid(), (int)pgrp, (int)mygetpgrp(),
1989 setttypgrp(pgrp);
1999 if (setpgid(0, pgrp) == -1) {
2002 if (setpgid(0, pgrp = getpid()) == -1) {
2008 wanttty = pgrp; /* Now we really want the tty, since we became the
2017 setttypgrp(pgrp);
2022 jobdebug_xprintf(("wanttty %d pid %d pgrp %d tpgrp %d\n",