Searched refs:worker (Results 1 – 1 of 1) sorted by relevance
/bionic/tests/ |
D | sys_ptrace_test.cpp | 381 pid_t worker = -1; member in PtraceResumptionTest 396 worker = fork(); in PtraceResumptionTest() 397 if (worker == -1) { in PtraceResumptionTest() 399 } else if (worker == 0) { in PtraceResumptionTest() 468 if (worker == -1) { in WaitForWorker() 473 pid_t rc = TEMP_FAILURE_RETRY(waitpid(worker, &result, WNOHANG)); in WaitForWorker() 481 rc = TEMP_FAILURE_RETRY(waitpid(worker, &result, 0)); in WaitForWorker() 482 if (rc != worker) { in WaitForWorker() 517 ASSERT_EQ(0, ptrace(PTRACE_SEIZE, worker, 0, 0)) << strerror(errno); in TEST_F() 518 ASSERT_EQ(0, ptrace(PTRACE_INTERRUPT, worker, 0, 0)) << strerror(errno); in TEST_F() [all …]
|