Lines Matching refs:pgid
39 * 2. Check functioning of setpgid(2) with pid = 0 and pgid = 0.
80 pid_t pgid, pid;
82 pgid = getpgrp();
85 TEST(setpgid(pid, pgid));
86 if (TEST_RETURN == -1 || getpgrp() != pgid) {
88 pid, pgid);
90 tst_resm(TPASS, "test setpgid(%d, %d) success", pid, pgid);
109 pid_t pgid, pid;
120 pgid = getpgrp();
125 } else if (pgid != pid) {
126 fprintf(stderr, "setpgid(0, 0) fails to make PGID"