Home | History | Annotate | Download | only in sys

Lines Matching defs:child

44 	pid_t child, wpid;
51 SYSCALL_REQUIRE((child = fork()) != -1);
52 if (child == 0) {
53 DPRINTF("Before calling PT_TRACE_ME from child %d\n", getpid());
56 DPRINTF("Before raising %s from child\n", strsignal(sigval));
59 DPRINTF("Before exiting of the child process\n");
62 DPRINTF("Parent process PID=%d, child's PID=%d\n", getpid(), child);
64 DPRINTF("Before calling %s() for the child\n", TWAIT_FNAME);
65 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child, &status, 0), child);
69 DPRINTF("Call GETREGS for the child process\n");
70 SYSCALL_REQUIRE(ptrace(PT_GETREGS, child, &r, 0) != -1);
101 DPRINTF("Before resuming the child process where it left off and "
103 SYSCALL_REQUIRE(ptrace(PT_CONTINUE, child, (void *)1, 0) != -1);
105 DPRINTF("Before calling %s() for the child\n", TWAIT_FNAME);
106 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child, &status, 0), child);
110 DPRINTF("Before calling %s() for the child\n", TWAIT_FNAME);
111 TWAIT_REQUIRE_FAILURE(ECHILD, wpid = TWAIT_GENERIC(child, &status, 0));