• Home
  • Raw
  • Download

Lines Matching refs:child_pid

747 	pid_t child_pid;  in TEST()  local
749 child_pid = fork(); in TEST()
750 ASSERT_LE(0, child_pid); in TEST()
751 if (child_pid == 0) { in TEST()
756 ASSERT_EQ(child_pid, waitpid(child_pid, &status, 0)); in TEST()
766 pid_t child_pid; in TEST() local
768 child_pid = fork(); in TEST()
769 ASSERT_LE(0, child_pid); in TEST()
770 if (child_pid == 0) { in TEST()
775 ASSERT_EQ(child_pid, waitpid(child_pid, &status, 0)); in TEST()
2732 pid_t child_pid; in TEST() local
2768 child_pid = fork(); in TEST()
2769 ASSERT_LE(0, child_pid); in TEST()
2770 if (child_pid == 0) { in TEST()
2819 ASSERT_EQ(child_pid, waitpid(child_pid, &status, 0)); in TEST()
2821 ASSERT_EQ(0, ptrace(PTRACE_SETOPTIONS, child_pid, NULL, in TEST()
2823 ASSERT_EQ(0, ptrace(PTRACE_CONT, child_pid, NULL, 0)); in TEST()
2827 ASSERT_EQ(child_pid, waitpid(child_pid, &status, 0)); in TEST()
2831 ASSERT_EQ(0, ptrace(PTRACE_GETEVENTMSG, child_pid, NULL, &msg)); in TEST()
2833 EXPECT_EQ(__NR_nanosleep, get_syscall(_metadata, child_pid)); in TEST()
2836 ASSERT_EQ(0, ptrace(PTRACE_GETSIGINFO, child_pid, NULL, &info)); in TEST()
2842 EXPECT_EQ(child_pid, info.si_pid); in TEST()
2845 ASSERT_EQ(0, kill(child_pid, SIGSTOP)); in TEST()
2846 ASSERT_EQ(0, ptrace(PTRACE_CONT, child_pid, NULL, 0)); in TEST()
2847 ASSERT_EQ(child_pid, waitpid(child_pid, &status, 0)); in TEST()
2850 ASSERT_EQ(0, ptrace(PTRACE_GETSIGINFO, child_pid, NULL, &info)); in TEST()
2860 ASSERT_EQ(0, kill(child_pid, SIGCONT)); in TEST()
2861 ASSERT_EQ(0, ptrace(PTRACE_CONT, child_pid, NULL, 0)); in TEST()
2862 ASSERT_EQ(child_pid, waitpid(child_pid, &status, 0)); in TEST()
2865 ASSERT_EQ(0, ptrace(PTRACE_CONT, child_pid, NULL, 0)); in TEST()
2868 ASSERT_EQ(child_pid, waitpid(child_pid, &status, 0)); in TEST()
2872 ASSERT_EQ(0, ptrace(PTRACE_GETEVENTMSG, child_pid, NULL, &msg)); in TEST()
2875 ret = get_syscall(_metadata, child_pid); in TEST()
2892 ASSERT_EQ(0, ptrace(PTRACE_CONT, child_pid, NULL, 0)); in TEST()
2896 ASSERT_EQ(child_pid, waitpid(child_pid, &status, 0)); in TEST()