Lines Matching refs:pid
80 pid_t pid; in ATF_TC_BODY() local
82 switch (pid = fork()) { in ATF_TC_BODY()
84 ATF_REQUIRE(pid > 0); in ATF_TC_BODY()
89 ATF_REQUIRE(wait6(P_PID, pid, &st, WEXITED, &wru, &si) == pid); in ATF_TC_BODY()
92 ATF_REQUIRE(si.si_pid == pid); in ATF_TC_BODY()
115 pid_t pid; in ATF_TC_BODY() local
117 switch (pid = fork()) { in ATF_TC_BODY()
122 ATF_REQUIRE(pid > 0); in ATF_TC_BODY()
124 ATF_REQUIRE(kill(pid, SIGTERM) == 0); in ATF_TC_BODY()
125 ATF_REQUIRE(wait6(P_PID, pid, &st, WEXITED, &wru, &si) == pid); in ATF_TC_BODY()
128 ATF_REQUIRE(si.si_pid == pid); in ATF_TC_BODY()
151 pid_t pid; in ATF_TC_BODY() local
162 switch (pid = fork()) { in ATF_TC_BODY()
168 ATF_REQUIRE(pid > 0); in ATF_TC_BODY()
170 ATF_REQUIRE(wait6(P_PID, pid, &st, WEXITED, &wru, &si) == pid); in ATF_TC_BODY()
174 ATF_REQUIRE(si.si_pid == pid); in ATF_TC_BODY()
197 pid_t pid; in ATF_TC_BODY() local
201 switch (pid = fork()) { in ATF_TC_BODY()
206 ATF_REQUIRE(pid > 0); in ATF_TC_BODY()
208 ATF_REQUIRE(kill(pid, SIGSTOP) == 0); in ATF_TC_BODY()
209 ATF_REQUIRE(wait6(P_PID, pid, &st, WSTOPPED, &wru, &si) == pid); in ATF_TC_BODY()
215 ATF_REQUIRE(si.si_pid == pid); in ATF_TC_BODY()
223 ATF_REQUIRE(kill(pid, SIGCONT) == 0); in ATF_TC_BODY()
224 ATF_REQUIRE(wait6(P_PID, pid, &st, WCONTINUED, &wru, &si) == pid); in ATF_TC_BODY()
230 ATF_REQUIRE(si.si_pid == pid); in ATF_TC_BODY()
238 ATF_REQUIRE(kill(pid, SIGQUIT) == 0); in ATF_TC_BODY()
239 ATF_REQUIRE(wait6(P_PID, pid, &st, WEXITED, &wru, &si) == pid); in ATF_TC_BODY()
245 ATF_REQUIRE(si.si_pid == pid); in ATF_TC_BODY()
268 pid_t pid; in ATF_TC_BODY() local
273 switch (pid = fork()) { in ATF_TC_BODY()
278 ATF_REQUIRE(pid > 0); in ATF_TC_BODY()
283 ATF_REQUIRE(kill(pid, SIGSTOP) == 0); in ATF_TC_BODY()
284 ATF_REQUIRE(wait6(P_PID, pid, &st, WSTOPPED, &wru, &si) == pid); in ATF_TC_BODY()
290 ATF_REQUIRE(si.si_pid == pid); in ATF_TC_BODY()
294 ATF_REQUIRE(kill(pid, SIGCONT) == 0); in ATF_TC_BODY()
295 ATF_REQUIRE(wait6(P_PID, pid, &st, WCONTINUED, &wru, &si) == pid); in ATF_TC_BODY()
301 ATF_REQUIRE(si.si_pid == pid); in ATF_TC_BODY()
305 ATF_REQUIRE(kill(pid, SIGQUIT) == 0); in ATF_TC_BODY()
306 ATF_REQUIRE(wait6(P_PID, pid, &st, WEXITED, &wru, &si) == pid); in ATF_TC_BODY()
312 ATF_REQUIRE(si.si_pid == pid); in ATF_TC_BODY()