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