Lines Matching refs:child
44 static int check_error_paths(pid_t child)
73 ret = sys_ptrace(PTRACE_PEEKSIGINFO, child, &arg, addr_rw);
83 ret = sys_ptrace(PTRACE_PEEKSIGINFO, child, &arg,
91 ret = sys_ptrace(PTRACE_PEEKSIGINFO, child, &arg, addr_ro);
105 int check_direct_path(pid_t child, int shared, int nr)
122 ret = sys_ptrace(PTRACE_PEEKSIGINFO, child, &arg, siginfo);
157 pid_t child;
163 child = fork();
164 if (child == -1) {
167 } else if (child == 0) {
181 sys_rt_sigqueueinfo(child, SIGRTMIN, siginfo);
185 sys_rt_tgsigqueueinfo(child, child, SIGRTMIN, siginfo);
188 if (sys_ptrace(PTRACE_ATTACH, child, NULL, NULL) == -1)
191 waitpid(child, NULL, 0);
194 if (check_direct_path(child, 0, 1))
197 if (check_direct_path(child, 0, SIGNR))
204 if (check_direct_path(child, 1, 3))
207 if (check_error_paths(child))
213 if (sys_ptrace(PTRACE_KILL, child, NULL, NULL) == -1)
216 waitpid(child, NULL, 0);