Home
last modified time | relevance | path

Searched refs:chld (Results 1 – 1 of 1) sorted by relevance

/linux-4.4.14/tools/testing/selftests/x86/
Dptrace_syscall.c82 static siginfo_t wait_trap(pid_t chld) in wait_trap() argument
85 if (waitid(P_PID, chld, &si, WEXITED|WSTOPPED) != 0) in wait_trap()
87 if (si.si_pid != chld) in wait_trap()
165 pid_t chld = fork(); in test_ptrace_syscall_restart() local
166 if (chld < 0) in test_ptrace_syscall_restart()
169 if (chld == 0) { in test_ptrace_syscall_restart()
183 if (waitpid(chld, &status, 0) != chld || !WIFSTOPPED(status)) in test_ptrace_syscall_restart()
189 if (ptrace(PTRACE_SYSEMU, chld, 0, 0) != 0) in test_ptrace_syscall_restart()
191 wait_trap(chld); in test_ptrace_syscall_restart()
193 if (ptrace(PTRACE_GETREGS, chld, 0, &regs) != 0) in test_ptrace_syscall_restart()
[all …]