Home
last modified time | relevance | path

Searched refs:forkpid (Results 1 – 5 of 5) sorted by relevance

/system/core/debuggerd/client/
Ddebuggerd_client_test.cpp54 pid_t forkpid = fork(); in TEST() local
56 ASSERT_NE(-1, forkpid); in TEST()
58 if (forkpid == 0) { in TEST()
84 debuggerd_trigger_dump(forkpid, kDebuggerdNativeBacktrace, 10000, std::move(pipe_write))); in TEST()
86 ASSERT_EQ(0, kill(forkpid, SIGKILL)) << strerror(errno); in TEST()
95 std::string expected_end = android::base::StringPrintf("----- end %d -----", forkpid); in TEST()
111 pid_t forkpid = fork(); in TEST() local
112 ASSERT_NE(-1, forkpid); in TEST()
113 if (forkpid == 0) { in TEST()
125 debuggerd_trigger_dump(forkpid, kDebuggerdNativeBacktrace, 0, std::move(output_write))); in TEST()
/system/core/libprocinfo/
Dprocess_test.cpp92 pid_t forkpid = fork(); in TEST() local
94 ASSERT_NE(-1, forkpid); in TEST()
95 if (forkpid == 0) { in TEST()
106 ASSERT_TRUE(android::procinfo::GetProcessInfo(forkpid, &procinfo)); in TEST()
109 ASSERT_EQ(0, kill(forkpid, SIGKILL)); in TEST()
114 ASSERT_TRUE(android::procinfo::GetProcessInfo(forkpid, &procinfo)); in TEST()
117 ASSERT_EQ(forkpid, waitpid(forkpid, nullptr, 0)); in TEST()
/system/core/debuggerd/
Ddebuggerd_benchmark.cpp68 pid_t forkpid = fork(); in PerformDump() local
69 if (forkpid == -1) { in PerformDump()
71 } else if (forkpid != 0) { in PerformDump()
73 pid_t pid = waitpid(forkpid, &status, 0); in PerformDump()
Dcrash_dump.cpp399 pid_t forkpid = fork(); in main() local
400 if (forkpid == -1) { in main()
402 } else if (forkpid == 0) { in main()
Ddebuggerd_test.cpp873 pid_t forkpid = fork(); in TEST() local
878 if (forkpid == 0) { in TEST()
894 rc = waitpid(forkpid, &status, 0); in TEST()
895 ASSERT_EQ(forkpid, rc); in TEST()