• Home
  • Raw
  • Download

Lines Matching refs:child_pid

76 static void assert_wait_child(pid_t child_pid) {  in assert_wait_child()  argument
80 waited_pid = waitpid(child_pid, &child_stat, 0); in assert_wait_child()
85 ASSERT(child_pid == waited_pid); in assert_wait_child()
99 pid_t child_pid; in TEST_IMPL() local
102 child_pid = fork(); in TEST_IMPL()
103 ASSERT(child_pid != -1); in TEST_IMPL()
105 if (child_pid != 0) { in TEST_IMPL()
107 assert_wait_child(child_pid); in TEST_IMPL()
122 pid_t child_pid; in TEST_IMPL() local
134 child_pid = fork(); in TEST_IMPL()
135 ASSERT(child_pid != -1); in TEST_IMPL()
137 if (child_pid != 0) { in TEST_IMPL()
140 assert_wait_child(child_pid); in TEST_IMPL()
160 pid_t child_pid; in TEST_IMPL() local
183 child_pid = fork(); in TEST_IMPL()
184 ASSERT(child_pid != -1); in TEST_IMPL()
186 if (child_pid != 0) { in TEST_IMPL()
198 assert_wait_child(child_pid); in TEST_IMPL()
233 pid_t child_pid; in TEST_IMPL() local
247 child_pid = fork(); in TEST_IMPL()
248 ASSERT(child_pid != -1); in TEST_IMPL()
250 if (child_pid != 0) { in TEST_IMPL()
253 ASSERT(0 == kill(child_pid, SIGUSR1)); in TEST_IMPL()
260 assert_wait_child(child_pid); in TEST_IMPL()
282 pid_t child_pid; in TEST_IMPL() local
299 child_pid = fork(); in TEST_IMPL()
300 ASSERT(child_pid != -1); in TEST_IMPL()
302 if (child_pid != 0) { in TEST_IMPL()
307 ASSERT(0 == kill(child_pid, SIGUSR1)); in TEST_IMPL()
319 assert_wait_child(child_pid); in TEST_IMPL()
460 pid_t child_pid; in _do_fork_fs_events_child() local
465 child_pid = fork(); in _do_fork_fs_events_child()
466 ASSERT(child_pid != -1); in _do_fork_fs_events_child()
468 if (child_pid != 0) { in _do_fork_fs_events_child()
470 assert_wait_child(child_pid); in _do_fork_fs_events_child()
551 pid_t child_pid; in TEST_IMPL() local
571 child_pid = fork(); in TEST_IMPL()
572 ASSERT(child_pid != -1); in TEST_IMPL()
573 if (child_pid != 0) { in TEST_IMPL()
575 assert_wait_child(child_pid); in TEST_IMPL()
646 pid_t child_pid; in TEST_IMPL() local
652 child_pid = fork(); in TEST_IMPL()
653 ASSERT(child_pid != -1); in TEST_IMPL()
655 if (child_pid != 0) { in TEST_IMPL()
658 assert_wait_child(child_pid); in TEST_IMPL()