Lines Matching full:child
32 int child = fork(); in spawn_child() local
34 if (child == 0) { in spawn_child()
36 * The child sets itself for as tracee and in spawn_child()
52 return child; in spawn_child()
61 pid_t child; in bp_modify1() local
65 child = spawn_child(); in bp_modify1()
67 waitpid(child, &status, 0); in bp_modify1()
79 * - detaches the child in bp_modify1()
81 if (ptrace(PTRACE_POKEUSER, child, in bp_modify1()
88 if (ptrace(PTRACE_POKEUSER, child, in bp_modify1()
95 if (ptrace(PTRACE_POKEUSER, child, in bp_modify1()
101 if (ptrace(PTRACE_CONT, child, NULL, NULL)) { in bp_modify1()
106 waitpid(child, &status, 0); in bp_modify1()
112 rip = ptrace(PTRACE_PEEKUSER, child, in bp_modify1()
123 if (ptrace(PTRACE_DETACH, child, NULL, NULL)) { in bp_modify1()
138 pid_t child; in bp_modify2() local
142 child = spawn_child(); in bp_modify2()
144 waitpid(child, &status, 0); in bp_modify2()
156 * - detaches the child in bp_modify2()
158 if (ptrace(PTRACE_POKEUSER, child, in bp_modify2()
165 if (ptrace(PTRACE_POKEUSER, child, in bp_modify2()
171 if (!ptrace(PTRACE_POKEUSER, child, in bp_modify2()
177 if (ptrace(PTRACE_CONT, child, NULL, NULL)) { in bp_modify2()
182 waitpid(child, &status, 0); in bp_modify2()
188 rip = ptrace(PTRACE_PEEKUSER, child, in bp_modify2()
199 if (ptrace(PTRACE_DETACH, child, NULL, NULL)) { in bp_modify2()