Lines Matching refs:pid
26 unsigned long os_process_pc(int pid) in os_process_pc() argument
32 sprintf(proc_stat, "/proc/%d/stat", pid); in os_process_pc()
58 int os_process_parent(int pid) in os_process_parent() argument
64 if (pid == -1) in os_process_parent()
67 snprintf(stat, sizeof(stat), "/proc/%d/stat", pid); in os_process_parent()
92 void os_stop_process(int pid) in os_stop_process() argument
94 kill(pid, SIGSTOP); in os_stop_process()
97 void os_kill_process(int pid, int reap_child) in os_kill_process() argument
99 kill(pid, SIGKILL); in os_kill_process()
101 CATCH_EINTR(waitpid(pid, NULL, __WALL)); in os_kill_process()
109 void os_kill_ptraced_process(int pid, int reap_child) in os_kill_ptraced_process() argument
111 kill(pid, SIGKILL); in os_kill_ptraced_process()
112 ptrace(PTRACE_KILL, pid); in os_kill_ptraced_process()
113 ptrace(PTRACE_CONT, pid); in os_kill_ptraced_process()
115 CATCH_EINTR(waitpid(pid, NULL, __WALL)); in os_kill_ptraced_process()