Lines Matching defs:child
34 pid_t child, wpid;
42 SYSCALL_REQUIRE((child = fork()) != -1);
43 if (child == 0) {
44 DPRINTF("Before calling PT_TRACE_ME from child %d\n", getpid());
47 DPRINTF("Before raising %s from child\n", strsignal(sigval));
50 DPRINTF("Before exiting of the child process\n");
53 DPRINTF("Parent process PID=%d, child's PID=%d\n", getpid(), child);
55 DPRINTF("Before calling %s() for the child\n", TWAIT_FNAME);
56 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child, &status, 0), child);
62 ptrace(PT_SET_EVENT_MASK, child, &set_event, len) != -1);
64 ptrace(PT_GET_EVENT_MASK, child, &get_event, len) != -1);
69 DPRINTF("Before resuming the child process where it left off and "
71 SYSCALL_REQUIRE(ptrace(PT_CONTINUE, child, (void *)1, 0) != -1);
73 DPRINTF("Before calling %s() for the child\n", TWAIT_FNAME);
74 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child, &status, 0), child);
78 DPRINTF("Before calling %s() for the child\n", TWAIT_FNAME);
79 TWAIT_REQUIRE_FAILURE(ECHILD, wpid = TWAIT_GENERIC(child, &status, 0));