Home
last modified time | relevance | path

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

/system/core/debuggerd/client/
Ddebuggerd_client_test.cpp41 pid_t forkpid = fork(); in TEST() local
43 ASSERT_NE(-1, forkpid); in TEST()
45 if (forkpid == 0) { in TEST()
70 ASSERT_TRUE(debuggerd_trigger_dump(forkpid, std::move(pipe_write), kDebuggerdBacktrace, 10000)); in TEST()
72 ASSERT_EQ(0, kill(forkpid, SIGKILL)) << strerror(errno); in TEST()
81 std::string expected_end = android::base::StringPrintf("----- end %d -----", forkpid); in TEST()
97 pid_t forkpid = fork(); in TEST() local
98 ASSERT_NE(-1, forkpid); in TEST()
99 if (forkpid == 0) { in TEST()
110 ASSERT_TRUE(debuggerd_trigger_dump(forkpid, std::move(output_write), kDebuggerdBacktrace, 0)); in TEST()
/system/core/debuggerd/handler/
Ddebuggerd_handler.cpp271 int forkpid = clone(nullptr, nullptr, 0, nullptr); in debuggerd_dispatch_pseudothread() local
272 if (forkpid == -1) { in debuggerd_dispatch_pseudothread()
275 } else if (forkpid == 0) { in debuggerd_dispatch_pseudothread()
312 if (TEMP_FAILURE_RETRY(waitpid(forkpid, &status, 0)) == -1) { in debuggerd_dispatch_pseudothread()
/system/core/debuggerd/
Dcrash_dump.cpp262 pid_t forkpid = fork(); in main() local
263 if (forkpid == -1) { in main()
265 } else if (forkpid != 0) { in main()
Ddebuggerd_test.cpp565 pid_t forkpid = fork(); in TEST() local
570 if (forkpid == 0) { in TEST()
586 rc = waitpid(forkpid, &status, 0); in TEST()
587 ASSERT_EQ(forkpid, rc); in TEST()