Lines Matching full:child
31 int child = fork(); in spawn_child() local
33 if (child == 0) { in spawn_child()
35 * The child sets itself for as tracee and in spawn_child()
51 return child; in spawn_child()
60 pid_t child; in bp_modify1() local
64 child = spawn_child(); in bp_modify1()
66 waitpid(child, &status, 0); in bp_modify1()
78 * - detaches the child in bp_modify1()
80 if (ptrace(PTRACE_POKEUSER, child, in bp_modify1()
87 if (ptrace(PTRACE_POKEUSER, child, in bp_modify1()
94 if (ptrace(PTRACE_POKEUSER, child, in bp_modify1()
100 if (ptrace(PTRACE_CONT, child, NULL, NULL)) { in bp_modify1()
105 waitpid(child, &status, 0); in bp_modify1()
111 rip = ptrace(PTRACE_PEEKUSER, child, in bp_modify1()
122 if (ptrace(PTRACE_DETACH, child, NULL, NULL)) { in bp_modify1()
137 pid_t child; in bp_modify2() local
141 child = spawn_child(); in bp_modify2()
143 waitpid(child, &status, 0); in bp_modify2()
155 * - detaches the child in bp_modify2()
157 if (ptrace(PTRACE_POKEUSER, child, in bp_modify2()
164 if (ptrace(PTRACE_POKEUSER, child, in bp_modify2()
170 if (!ptrace(PTRACE_POKEUSER, child, in bp_modify2()
176 if (ptrace(PTRACE_CONT, child, NULL, NULL)) { in bp_modify2()
181 waitpid(child, &status, 0); in bp_modify2()
187 rip = ptrace(PTRACE_PEEKUSER, child, in bp_modify2()
198 if (ptrace(PTRACE_DETACH, child, NULL, NULL)) { in bp_modify2()