Home | History | Annotate | Download | only in sys

Lines Matching refs:child

52 	pid_t child, wpid;
73 SYSCALL_REQUIRE((child = fork()) != -1);
74 if (child == 0) {
75 DPRINTF("Before calling PT_TRACE_ME from child %d\n", getpid());
84 DPRINTF("Before raising %s from child\n", strsignal(sigval));
108 DPRINTF("Parent process PID=%d, child's PID=%d\n", getpid(), child);
110 DPRINTF("Before calling %s() for the child\n", TWAIT_FNAME);
111 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child, &status, 0), child);
115 DPRINTF("Before calling ptrace(2) with PT_GET_SIGINFO for child\n");
117 ptrace(PT_GET_SIGINFO, child, &info, sizeof(info)) != -1);
127 DPRINTF("Set LWP event mask for the child %d\n", child);
133 SYSCALL_REQUIRE(ptrace(PT_SET_EVENT_MASK, child, &event, elen) != -1);
135 DPRINTF("Before resuming the child process where it left off and "
137 SYSCALL_REQUIRE(ptrace(PT_CONTINUE, child, (void *)1, 0) != -1);
140 DPRINTF("Before calling %s() for the child - expected stopped "
142 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child, &status, 0),
143 child);
148 "child\n");
150 ptrace(PT_GET_SIGINFO, child, &info, sizeof(info)) != -1);
162 ptrace(PT_GET_PROCESS_STATE, child, &state, slen) != -1);
172 DPRINTF("Before resuming the child process where it left off "
174 SYSCALL_REQUIRE(ptrace(PT_CONTINUE, child, (void *)1, 0) != -1);
178 DPRINTF("Before calling %s() for the child - expected stopped "
180 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child, &status, 0),
181 child);
186 "child\n");
188 ptrace(PT_GET_SIGINFO, child, &info, sizeof(info)) != -1);
200 ptrace(PT_GET_PROCESS_STATE, child, &state, slen) != -1);
214 DPRINTF("Before resuming the child process where it left off "
216 SYSCALL_REQUIRE(ptrace(PT_CONTINUE, child, (void *)1, 0) != -1);
219 kill(child, SIGKILL);
221 DPRINTF("Before calling %s() for the child - expected exited\n",
223 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child, &status, 0), child);
227 DPRINTF("Before calling %s() for the child - expected no process\n",
229 TWAIT_REQUIRE_FAILURE(ECHILD, wpid = TWAIT_GENERIC(child, &status, 0));
272 pid_t child, wpid;
286 SYSCALL_REQUIRE((child = fork()) != -1);
287 if (child == 0) {
288 DPRINTF("Before calling PT_TRACE_ME from child %d\n", getpid());
291 DPRINTF("Before raising %s from child\n", strsignal(sigval));
302 DPRINTF("Parent process PID=%d, child's PID=%d\n", getpid(), child);
304 DPRINTF("Before calling %s() for the child\n", TWAIT_FNAME);
305 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child, &status, 0), child);
309 DPRINTF("Before calling ptrace(2) with PT_GET_SIGINFO for child\n");
311 ptrace(PT_GET_SIGINFO, child, &info, sizeof(info)) != -1);
321 DPRINTF("Set LWP event mask for the child %d\n", child);
324 SYSCALL_REQUIRE(ptrace(PT_SET_EVENT_MASK, child, &event, elen) != -1);
326 DPRINTF("Before resuming the child process where it left off and "
328 SYSCALL_REQUIRE(ptrace(PT_CONTINUE, child, (void *)1, 0) != -1);
330 DPRINTF("Before calling %s() for the child - expected stopped "
332 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child, &status, 0),
333 child);
338 "child\n");
340 ptrace(PT_GET_SIGINFO, child, &info, sizeof(info)) != -1);
352 ptrace(PT_GET_PROCESS_STATE, child, &state, slen) != -1);
360 DPRINTF("Before resuming the child process where it left off "
362 SYSCALL_REQUIRE(ptrace(PT_CONTINUE, child, (void *)1, 0) != -1);
364 DPRINTF("Before calling %s() for the child - expected stopped "
366 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child, &status, 0),
367 child);
372 "child\n");
374 ptrace(PT_GET_SIGINFO, child, &info, sizeof(info)) != -1);
386 ptrace(PT_GET_PROCESS_STATE, child, &state, slen) != -1);
394 DPRINTF("Before resuming the child process where it left off "
396 SYSCALL_REQUIRE(ptrace(PT_CONTINUE, child, (void *)1, 0) != -1);
398 DPRINTF("Before calling %s() for the child - expected stopped "
400 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child, &status, 0),
401 child);
406 "child\n");
408 ptrace(PT_GET_SIGINFO, child, &info, sizeof(info)) != -1);
419 SYSCALL_REQUIRE(ptrace(PT_KILL, child, NULL, 0) != -1);
421 DPRINTF("Before calling %s() for the child - expected exited\n",
423 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child, &status, 0), child);
427 DPRINTF("Before calling %s() for the child - expected no process\n",
429 TWAIT_REQUIRE_FAILURE(ECHILD, wpid = TWAIT_GENERIC(child, &status, 0));
460 pid_t child, wpid;
467 SYSCALL_REQUIRE((child = fork()) != -1);
468 if (child == 0) {
469 DPRINTF("Before calling PT_TRACE_ME from child %d\n", getpid());
472 DPRINTF("Before raising %s from child\n", strsignal(sigval));
475 DPRINTF("Before exiting of the child process\n");
478 DPRINTF("Parent process PID=%d, child's PID=%d\n", getpid(), child);
480 DPRINTF("Before calling %s() for the child\n", TWAIT_FNAME);
481 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child, &status, 0), child);
486 SYSCALL_REQUIRE(ptrace(PT_GET_SIGINFO, child, &psi, sizeof(psi)) != -1);
489 SYSCALL_REQUIRE(ptrace(PT_SUSPEND, child, NULL, psi.psi_lwpid) != -1);
491 DPRINTF("Before resuming the child process where it left off and "
494 ptrace(PT_CONTINUE, child, (void *)1, 0) == -1);
497 SYSCALL_REQUIRE(ptrace(PT_RESUME, child, NULL, psi.psi_lwpid) != -1);
499 DPRINTF("Before resuming the child process where it left off and "
501 SYSCALL_REQUIRE(ptrace(PT_CONTINUE, child, (void *)1, 0) != -1);
503 DPRINTF("Before calling %s() for the child - expected exited\n",
505 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child, &status, 0), child);
509 DPRINTF("Before calling %s() for the child - expected no process\n",
511 TWAIT_REQUIRE_FAILURE(ECHILD, wpid = TWAIT_GENERIC(child, &status, 0));
547 pid_t child, wpid;
556 SYSCALL_REQUIRE((child = fork()) != -1);
557 if (child == 0) {
558 DPRINTF("Before calling PT_TRACE_ME from child %d\n", getpid());
564 DPRINTF("Before raising %s from child\n", strsignal(sigval));
567 DPRINTF("Before creating new thread in child\n");
576 DPRINTF("Parent process PID=%d, child's PID=%d\n", getpid(), child);
578 DPRINTF("Before calling %s() for the child\n", TWAIT_FNAME);
579 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child, &status, 0), child);
583 DPRINTF("Before resuming the child process where it left off and "
585 SYSCALL_REQUIRE(ptrace(PT_CONTINUE, child, (void *)1, 0) != -1);
587 DPRINTF("Before calling %s() for the child - expected stopped "
589 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child, &status, 0), child);
594 SYSCALL_REQUIRE(ptrace(PT_GET_SIGINFO, child, &psi, sizeof(psi)) != -1);
597 SYSCALL_REQUIRE(ptrace(PT_SUSPEND, child, NULL, psi.psi_lwpid) != -1);
601 DPRINTF("Before resuming the child process where it left off and "
603 SYSCALL_REQUIRE(ptrace(PT_CONTINUE, child, (void *)1, 0) != -1);
609 DPRINTF("Before calling %s() for the child - expected no status\n",
611 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child, &status, WNOHANG), 0);
614 DPRINTF("Before resuming the child process where it left off and "
616 SYSCALL_REQUIRE(ptrace(PT_STOP, child, NULL, 0) != -1);
618 DPRINTF("Before calling %s() for the child - expected stopped "
620 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child, &status, 0), child);
625 SYSCALL_REQUIRE(ptrace(PT_RESUME, child, NULL, lid) != -1);
627 DPRINTF("Before resuming the child process where it left off and "
629 SYSCALL_REQUIRE(ptrace(PT_CONTINUE, child, (void *)1, 0) != -1);
631 DPRINTF("Before calling %s() for the child - expected stopped "
633 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child, &status, 0), child);
637 DPRINTF("Before resuming the child process where it left off and "
639 SYSCALL_REQUIRE(ptrace(PT_KILL, child, (void *)1, 0) != -1);
641 DPRINTF("Before calling %s() for the child - expected exited\n",
643 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child, &status, 0), child);
647 DPRINTF("Before calling %s() for the child - expected no process\n",
649 TWAIT_REQUIRE_FAILURE(ECHILD, wpid = TWAIT_GENERIC(child, &status, 0));
742 thread_concurrent_lwp_setup(pid_t child, lwpid_t lwpid);
744 thread_concurrent_handle_sigtrap(pid_t child, ptrace_siginfo_t *info);
753 pid_t child, wpid;
779 SYSCALL_REQUIRE((child = fork()) != -1);
780 if (child == 0) {
785 DPRINTF("Before calling PT_TRACE_ME from child %d\n", getpid());
788 DPRINTF("Before raising %s from child\n", strsignal(sigval));
810 DPRINTF("Before starting threads from the child\n");
831 DPRINTF("Before joining threads from the child\n");
846 DPRINTF("Before exiting of the child process\n");
849 DPRINTF("Parent process PID=%d, child's PID=%d\n", getpid(), child);
851 DPRINTF("Before calling %s() for the child\n", TWAIT_FNAME);
852 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child, &status, 0), child);
856 DPRINTF("Set LWP event mask for the child process\n");
859 SYSCALL_REQUIRE(ptrace(PT_SET_EVENT_MASK, child, &event, sizeof(event))
862 DPRINTF("Before resuming the child process where it left off\n");
863 SYSCALL_REQUIRE(ptrace(PT_CONTINUE, child, (void *)1, 0) != -1);
869 DPRINTF("Before calling %s() for the child\n", TWAIT_FNAME);
870 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child, &status, 0),
871 child);
881 SYSCALL_REQUIRE(ptrace(PT_GET_SIGINFO, child, &info,
903 thread_concurrent_lwp_setup(child, info.psi_lwpid);
907 switch (thread_concurrent_handle_sigtrap(child, &info)) {
926 DPRINTF("Before resuming the child process\n");
927 SYSCALL_REQUIRE(ptrace(PT_CONTINUE, child, (void *)1,