Lines Matching refs:child_pid
25 static pid_t child_pid; variable
38 child_pid = SAFE_FORK(); in run()
40 if (!child_pid) in run()
43 if (SAFE_WAITPID(child_pid, &status, WUNTRACED) != child_pid) in run()
47 SAFE_PTRACE(PTRACE_ATTACH, child_pid, NULL, NULL); in run()
48 SAFE_PTRACE(PTRACE_POKEUSER, child_pid, in run()
50 SAFE_PTRACE(PTRACE_POKEUSER, child_pid, in run()
53 addr = ptrace(PTRACE_PEEKUSER, child_pid, in run()
62 SAFE_PTRACE(PTRACE_DETACH, child_pid, NULL, NULL); in run()
63 SAFE_KILL(child_pid, SIGCONT); in run()
64 child_pid = 0; in run()
71 if (child_pid) in cleanup()
72 SAFE_KILL(child_pid, SIGKILL); in cleanup()