Lines Matching defs:child
49 pid_t child, wpid;
66 SYSCALL_REQUIRE((child = fork()) != -1);
67 if (child == 0) {
68 DPRINTF("Before calling PT_TRACE_ME from child %d\n", getpid());
73 DPRINTF("Before raising %s from child\n", strsignal(sigval));
82 DPRINTF("Before exiting of the child process\n");
85 DPRINTF("Parent process PID=%d, child's PID=%d\n", getpid(), child);
87 DPRINTF("Before calling %s() for the child\n", TWAIT_FNAME);
88 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child, &status, 0), child);
92 DPRINTF("Before resuming the child process where it left off and "
94 SYSCALL_REQUIRE(ptrace(PT_SYSCALL, child, (void *)1, 0) != -1);
96 DPRINTF("Before calling %s() for the child\n", TWAIT_FNAME);
97 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child, &status, 0), child);
101 DPRINTF("Before calling ptrace(2) with PT_GET_SIGINFO for child\n");
102 SYSCALL_REQUIRE(ptrace(PT_GET_SIGINFO, child, &info, sizeof(info)) != -1);
110 SYSCALL_REQUIRE(ptrace(PT_KILL, child, NULL, 0) != -1);
112 DPRINTF("Before calling %s() for the child\n", TWAIT_FNAME);
114 wpid = TWAIT_GENERIC(child, &status, 0), child);
119 DPRINTF("Before resuming the child %d and sending a "
120 "signal SIGINFO\n", child);
122 ptrace(PT_CONTINUE, child, (void *)1, SIGINFO)
125 DPRINTF("Before detaching the child %d\n", child);
127 ptrace(PT_DETACH, child, (void *)1, 0) != -1);
129 DPRINTF("Before resuming the child process where it "
132 ptrace(PT_SYSCALL, child, (void *)1, 0) != -1);
134 DPRINTF("Before calling %s() for the child\n",
137 wpid = TWAIT_GENERIC(child, &status, 0), child);
142 "for child\n");
144 ptrace(PT_GET_SIGINFO, child, &info, sizeof(info))
152 DPRINTF("Before resuming the child process where it "
155 ptrace(PT_CONTINUE, child, (void *)1, 0) != -1);
158 DPRINTF("Before calling %s() for the child\n", TWAIT_FNAME);
160 wpid = TWAIT_GENERIC(child, &status, 0), child);
165 DPRINTF("Before calling %s() for the child\n", TWAIT_FNAME);
166 TWAIT_REQUIRE_FAILURE(ECHILD, wpid = TWAIT_GENERIC(child, &status, 0));
203 pid_t child, wpid;
209 SYSCALL_REQUIRE((child = fork()) != -1);
210 if (child == 0) {
211 DPRINTF("Before calling PT_TRACE_ME from child %d\n", getpid());
214 DPRINTF("Before raising %s from child\n", strsignal(sigval));
219 DPRINTF("Before exiting of the child process\n");
222 DPRINTF("Parent process PID=%d, child's PID=%d\n", getpid(), child);
224 DPRINTF("Before calling %s() for the child\n", TWAIT_FNAME);
225 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child, &status, 0), child);
229 DPRINTF("Before resuming the child process where it left off and "
231 SYSCALL_REQUIRE(ptrace(PT_SYSCALL, child, (void *)1, 0) != -1);
233 DPRINTF("Before calling %s() for the child\n", TWAIT_FNAME);
234 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child, &status, 0), child);
239 SYSCALL_REQUIRE(ptrace(PT_SYSCALLEMU, child, (void *)1, 0) != -1);
241 DPRINTF("Before resuming the child process where it left off and "
243 SYSCALL_REQUIRE(ptrace(PT_SYSCALL, child, (void *)1, 0) != -1);
245 DPRINTF("Before calling %s() for the child\n", TWAIT_FNAME);
246 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child, &status, 0), child);
250 DPRINTF("Before resuming the child process where it left off and "
252 SYSCALL_REQUIRE(ptrace(PT_CONTINUE, child, (void *)1, 0) != -1);
254 DPRINTF("Before calling %s() for the child\n", TWAIT_FNAME);
255 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child, &status, 0), child);
259 DPRINTF("Before calling %s() for the child\n", TWAIT_FNAME);
260 TWAIT_REQUIRE_FAILURE(ECHILD, wpid = TWAIT_GENERIC(child, &status, 0));