Lines Matching defs:child2
36 pid_t child, child2 = 0, wpid;
66 FORKEE_ASSERT_EQ(posix_spawn(&child2,
70 FORKEE_ASSERT((child2 = fork()) != -1);
72 FORKEE_ASSERT((child2 = vfork()) != -1);
75 if (child2 == 0)
79 (wpid = TWAIT_GENERIC(child2, &status, 0), child2);
153 child2 = state.pe_other_pid;
154 DPRINTF("Reported ptrace event with forkee %d\n", child2);
157 "%d\n", TWAIT_FNAME, child2, child);
158 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child2, &status, 0),
159 child2);
164 ptrace(PT_GET_PROCESS_STATE, child2, &state, slen) != -1);
184 ptrace(PT_CONTINUE, child2, (void *)1, 0) != -1);
204 child2 = state.pe_other_pid;
206 child2);
220 wpid = TWAIT_GENERIC(child2, &status, 0), child2);
227 wpid = TWAIT_GENERIC(child2, &status, 0));
745 pid_t child, child2 = 0, wpid;
768 FORKEE_ASSERT_EQ(posix_spawn(&child2,
772 FORKEE_ASSERT((child2 = fork()) != -1);
774 FORKEE_ASSERT((child2 = vfork()) != -1);
777 if (child2 == 0)
782 (wpid = TWAIT_GENERIC(child2, &status, 0), child2);
822 child2 = state.pe_other_pid;
823 DPRINTF("Reported ptrace event with forkee %d\n", child2);
833 TWAIT_FNAME, child2, child);
834 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child2, &status, 0), child2);
839 ptrace(PT_GET_PROCESS_STATE, child2, &state, slen) != -1);
853 ptrace(PT_CONTINUE, child2, (void *)1, 0) != -1);
867 child2 = state.pe_other_pid;
869 child2);
879 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child2, &status, 0), child2);
885 TWAIT_REQUIRE_FAILURE(ECHILD, wpid = TWAIT_GENERIC(child2, &status, 0));
1220 pid_t child, child2 = 0, wpid;
1231 FORKEE_ASSERT((child2 = (fn)()) != -1);
1233 if (child2 == 0)
1237 (wpid = TWAIT_GENERIC(child2, &status, 0), child2);
1283 pid_t child, child2 = 0, wpid;
1328 FORKEE_ASSERT_EQ(posix_spawn(&child2,
1332 FORKEE_ASSERT((child2 = fork()) != -1);
1334 FORKEE_ASSERT((child2 = vfork()) != -1);
1336 if (child2 == 0)
1341 (wpid = TWAIT_GENERIC(child2, &status, 0), child2);
1469 child2 = state.pe_other_pid;
1470 DPRINTF("Reported ptrace event with forkee %d\n", child2);
1473 "%d\n", TWAIT_FNAME, child2, child);
1474 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child2, &status, 0),
1475 child2);
1479 name[3] = child2;
1517 ptrace(PT_GET_PROCESS_STATE, child2, &state, slen) != -1);
1537 ptrace(PT_CONTINUE, child2, (void *)1, 0) != -1);
1599 child2 = state.pe_other_pid;
1601 child2);
1613 wpid = TWAIT_GENERIC(child2, &status, 0), child2);
1620 wpid = TWAIT_GENERIC(child2, &status, 0));