Lines Matching refs:pid
39 * 2. Check functioning of setpgid(2) with pid = 0 and pgid = 0.
80 pid_t pgid, pid;
83 pid = getpid();
85 TEST(setpgid(pid, pgid));
88 pid, pgid);
90 tst_resm(TPASS, "test setpgid(%d, %d) success", pid, pgid);
109 pid_t pgid, pid;
111 pid = FORK_OR_VFORK();
112 if (pid == -1)
115 if (pid != 0) {
116 ret = wait4child(pid);
118 pid = getpid();
125 } else if (pgid != pid) {