Lines Matching refs:pgid
852 pgfind(pid_t pgid)
857 pgrp = pgfind_internal(pgid);
869 pgfind_internal(pid_t pgid)
873 for (pgrp = PGRPHASH(pgid)->lh_first; pgrp != 0; pgrp = pgrp->pg_hash.le_next)
874 if (pgrp->pg_id == pgid)
962 enterpgrp(proc_t p, pid_t pgid, int mksess)
968 pgrp = pgfind(pgid);
985 if (p->p_pid != pgid)
986 panic("enterpgrp: new pgrp and pid != pgid");
1042 pgrp->pg_id = pgid;
1050 LIST_INSERT_HEAD(PGRPHASH(pgid), pgrp, pg_hash);
2041 pid_t pgid;
2067 pgid = pgrp->pg_id;
2092 if (p->p_pgrpid != pgid) {