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