Searched refs:forkpid (Results 1 – 5 of 5) sorted by relevance
/system/core/debuggerd/client/ |
D | debuggerd_client_test.cpp | 54 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, 60000, 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/libprocinfo/ |
D | process_test.cpp | 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() [all …]
|
/system/core/debuggerd/ |
D | debuggerd_benchmark.cpp | 68 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()
|
D | crash_dump.cpp | 425 pid_t forkpid = fork(); in main() local 426 if (forkpid == -1) { in main() 428 } else if (forkpid == 0) { in main()
|
D | debuggerd_test.cpp | 1446 pid_t forkpid = fork(); in TEST() local 1451 if (forkpid == 0) { in TEST() 1467 rc = TEMP_FAILURE_RETRY(waitpid(forkpid, &status, 0)); in TEST() 1468 ASSERT_EQ(forkpid, rc); in TEST()
|