Lines Matching refs:forkpid
95 pid_t forkpid = fork(); in TEST() local
97 ASSERT_NE(-1, forkpid); in TEST()
98 if (forkpid == 0) { in TEST()
109 ASSERT_TRUE(android::procinfo::GetProcessInfo(forkpid, &procinfo)); in TEST()
112 ASSERT_EQ(0, kill(forkpid, SIGKILL)); in TEST()
117 ASSERT_TRUE(android::procinfo::GetProcessInfo(forkpid, &procinfo)); in TEST()
120 ASSERT_EQ(forkpid, waitpid(forkpid, nullptr, 0)); in TEST()
138 pid_t forkpid = fork(); in TEST() local
140 ASSERT_NE(-1, forkpid); in TEST()
141 if (forkpid == 0) { in TEST()
153 ASSERT_TRUE(android::procinfo::GetProcessInfo(forkpid, &procinfo)); in TEST()
160 ASSERT_EQ(0, kill(forkpid, SIGKILL)); in TEST()
161 ASSERT_EQ(forkpid, waitpid(forkpid, nullptr, 0)); in TEST()