Lines Matching refs:pgid
42 int safe_setpgid(const char *file, const int lineno, pid_t pid, pid_t pgid)
46 rval = setpgid(pid, pgid);
50 "setpgid(%i, %i) failed", pid, pgid);
53 "Invalid setpgid(%i, %i) return value %d", pid, pgid,
62 pid_t pgid;
64 pgid = getpgid(pid);
66 if (pgid == -1) {
69 } else if (pgid < 0) {
71 "Invalid getpgid(%i) return value %d", pid, pgid);
74 return pgid;