Lines Matching refs:pgid
4235 "getpgid(pid) -> pgid\n\n\
4241 pid_t pid, pgid;
4244 pgid = getpgid(pid);
4245 if (pgid < 0)
4247 return PyLong_FromPid(pgid);
4380 "killpg(pgid, sig)\n\n\
4387 pid_t pgid;
4388 /* XXX some man pages make the `pgid` parameter an int, others
4392 if (!PyArg_ParseTuple(args, PARSE_PID "i:killpg", &pgid, &sig))
4394 if (killpg(pgid, sig) == -1)
6561 "tcgetpgrp(fd) -> pgid\n\n\
6568 pid_t pgid;
6571 pgid = tcgetpgrp(fd);
6572 if (pgid < 0)
6574 return PyLong_FromPid(pgid);
6581 "tcsetpgrp(fd, pgid)\n\n\
6588 pid_t pgid;
6589 if (!PyArg_ParseTuple(args, "i" PARSE_PID ":tcsetpgrp", &fd, &pgid))
6591 if (tcsetpgrp(fd, pgid) < 0)