Home | History | Annotate | Download | only in tests-mx32

Lines Matching defs:pid

172 	pid_t pid;
173 pid = fork();
174 if (pid < 0)
177 if (!pid) {
186 if (do_waitid(P_PID, pid, 0, WNOHANG|WEXITED, 0))
188 tprintf("waitid(P_PID, %d, NULL, WNOHANG|WEXITED, NULL) = 0\n", pid);
193 if (do_waitid(P_PID, pid, sinfo, WNOHANG|WEXITED|WSTOPPED, rusage))
196 pid, sprint_rusage(rusage));
201 if (do_waitid(P_PID, pid, sinfo, WEXITED, rusage))
204 pid, sprint_siginfo(sinfo, "42"), sprint_rusage(rusage));
206 pid = fork();
207 if (pid < 0)
210 if (!pid) {
215 if (do_waitid(P_PID, pid, sinfo, WEXITED, rusage))
218 pid, sprint_siginfo(sinfo, "SIGUSR1"), sprint_rusage(rusage));
222 pid = fork();
223 if (pid < 0)
226 if (!pid) {
236 if (do_waitid(P_PID, pid, sinfo, WSTOPPED, rusage))
239 pid, sprint_siginfo(sinfo, "SIGSTOP"), sprint_rusage(rusage));
241 if (kill(pid, SIGCONT))
245 if (do_waitid(P_PID, pid, sinfo, WCONTINUED, rusage))
248 pid, sprint_siginfo(sinfo, "SIGCONT"), sprint_rusage(rusage));
254 if (do_waitid(P_PID, pid, sinfo, WEXITED, rusage))
257 pid, sprint_siginfo(sinfo, "0"), sprint_rusage(rusage));