Searched refs:worker (Results 1 – 1 of 1) sorted by relevance
/bionic/tests/ |
D | sys_ptrace_test.cpp | 376 pid_t worker = -1; member in PtraceResumptionTest 391 worker = fork(); in PtraceResumptionTest() 392 if (worker == -1) { in PtraceResumptionTest() 394 } else if (worker == 0) { in PtraceResumptionTest() 463 if (worker == -1) { in WaitForWorker() 468 pid_t rc = TEMP_FAILURE_RETRY(waitpid(worker, &result, WNOHANG)); in WaitForWorker() 476 rc = TEMP_FAILURE_RETRY(waitpid(worker, &result, 0)); in WaitForWorker() 477 if (rc != worker) { in WaitForWorker() 512 ASSERT_EQ(0, ptrace(PTRACE_SEIZE, worker, 0, 0)) << strerror(errno); in TEST_F() 513 ASSERT_EQ(0, ptrace(PTRACE_INTERRUPT, worker, 0, 0)) << strerror(errno); in TEST_F() [all …]
|