Lines Matching refs:pid
53 pid_t pid = fork(); in run_test() local
56 if (pid < 0) { in run_test()
60 if (pid == 0) in run_test()
63 wpid = waitpid(pid, &status, __WALL); in run_test()
64 if (wpid != pid) { in run_test()
78 if (ptrace(PTRACE_SINGLESTEP, pid, NULL, NULL) < 0) { in run_test()
90 wpid = waitpid(pid, &status, __WALL); in run_test()
91 if (wpid != pid) { in run_test()
110 if (ptrace(PTRACE_CONT, pid, NULL, NULL) < 0) { in run_test()
116 wpid = waitpid(pid, &status, __WALL); in run_test()
117 if (wpid != pid) { in run_test()