Lines Matching refs:pid
23 void os_alarm_process(int pid) in os_alarm_process() argument
25 if (pid <= 0) in os_alarm_process()
28 kill(pid, SIGALRM); in os_alarm_process()
31 void os_kill_process(int pid, int reap_child) in os_kill_process() argument
33 if (pid <= 0) in os_kill_process()
39 kill(pid, SIGKILL); in os_kill_process()
41 CATCH_EINTR(waitpid(pid, NULL, __WALL)); in os_kill_process()
51 void os_kill_ptraced_process(int pid, int reap_child) in os_kill_ptraced_process() argument
53 if (pid <= 0) in os_kill_ptraced_process()
59 kill(pid, SIGKILL); in os_kill_ptraced_process()
60 ptrace(PTRACE_KILL, pid); in os_kill_ptraced_process()
61 ptrace(PTRACE_CONT, pid); in os_kill_ptraced_process()
63 CATCH_EINTR(waitpid(pid, NULL, __WALL)); in os_kill_ptraced_process()