Lines Matching defs:child
37 pid_t child, wpid;
46 SYSCALL_REQUIRE((child = fork()) != -1);
47 if (child == 0) {
48 DPRINTF("Before calling PT_TRACE_ME from child %d\n", getpid());
58 DPRINTF("Before raising %s from child\n", strsignal(sigval));
63 DPRINTF("Before exiting of the child process\n");
66 DPRINTF("Parent process PID=%d, child's PID=%d\n", getpid(), child);
68 DPRINTF("Before calling %s() for the child\n", TWAIT_FNAME);
69 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child, &status, 0), child);
73 DPRINTF("Before calling ptrace(2) with PT_GET_SIGINFO for child\n");
75 ptrace(PT_GET_SIGINFO, child, &info, sizeof(info)) != -1);
89 DPRINTF("Before calling ptrace(2) with PT_SET_SIGINFO for child\n");
91 ptrace(PT_SET_SIGINFO, child, &info, sizeof(info)) != -1);
95 "child\n");
96 SYSCALL_REQUIRE(ptrace(PT_GET_SIGINFO, child, &info,
104 DPRINTF("Before resuming the child process where it left off and "
106 SYSCALL_REQUIRE(ptrace(PT_CONTINUE, child, (void *)1,
109 DPRINTF("Before calling %s() for the child\n", TWAIT_FNAME);
110 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child, &status, 0), child);
114 DPRINTF("Before calling %s() for the child\n", TWAIT_FNAME);
115 TWAIT_REQUIRE_FAILURE(ECHILD, wpid = TWAIT_GENERIC(child, &status, 0));