Searched refs:chld (Results 1 – 1 of 1) sorted by relevance
| /Linux-v4.19/tools/testing/selftests/x86/ |
| D | ptrace_syscall.c | 84 static siginfo_t wait_trap(pid_t chld) in wait_trap() argument 87 if (waitid(P_PID, chld, &si, WEXITED|WSTOPPED) != 0) in wait_trap() 89 if (si.si_pid != chld) in wait_trap() 178 pid_t chld = fork(); in test_ptrace_syscall_restart() local 179 if (chld < 0) in test_ptrace_syscall_restart() 182 if (chld == 0) { in test_ptrace_syscall_restart() 198 if (waitpid(chld, &status, 0) != chld || !WIFSTOPPED(status)) in test_ptrace_syscall_restart() 204 if (ptrace(PTRACE_SYSEMU, chld, 0, 0) != 0) in test_ptrace_syscall_restart() 206 wait_trap(chld); in test_ptrace_syscall_restart() 208 if (ptrace(PTRACE_GETREGS, chld, 0, ®s) != 0) in test_ptrace_syscall_restart() [all …]
|