Lines Matching refs:pid
319 pid_t pid; in test_gup() local
364 pid = fork(); in test_gup()
365 if (!pid) { in test_gup()
377 waitpid(pid, &status, 0); in test_gup()
696 int pid; in test_ptrace() local
701 pid = fork(); in test_ptrace()
702 if (!pid) { in test_ptrace()
720 while (waitpid(pid, &status, 0) != -1 && WSTOPSIG(status) != SIGTRAP); in test_ptrace()
722 if (ptrace(PTRACE_GETREGSET, pid, NT_X86_SHSTK, &iov)) { in test_ptrace()
735 if (!ptrace(PTRACE_SETREGSET, pid, NT_X86_SHSTK, &iov)) { in test_ptrace()
741 if (!ptrace(PTRACE_SETREGSET, pid, NT_X86_SHSTK, &iov)) { in test_ptrace()
747 if (!ptrace(PTRACE_SETREGSET, pid, NT_X86_SHSTK, &iov)) { in test_ptrace()
753 if (!ptrace(PTRACE_SETREGSET, pid, NT_X86_SHSTK, &iov)) { in test_ptrace()
764 if (ptrace(PTRACE_SETREGSET, pid, NT_X86_SHSTK, &iov)) { in test_ptrace()
769 if (ptrace(PTRACE_DETACH, pid, NULL, NULL)) { in test_ptrace()
774 waitpid(pid, &status, 0); in test_ptrace()
782 kill(pid, SIGKILL); in test_ptrace()