Lines Matching refs:worker

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()
514 wait_for_ptrace_stop(worker); in TEST_F()
522 ASSERT_EQ(0, TEMP_FAILURE_RETRY(waitpid(worker, &result, WNOHANG))); in TEST_F()
524 ASSERT_EQ(worker, TEMP_FAILURE_RETRY(waitpid(worker, &result, 0))); in TEST_F()
528 StartTracer([this]() { ASSERT_EQ(0, ptrace(PTRACE_SEIZE, worker, 0, 0)) << strerror(errno); }); in TEST_F()
535 ASSERT_EQ(0, ptrace(PTRACE_SEIZE, worker, 0, 0)) << strerror(errno); in TEST_F()
536 ASSERT_EQ(0, ptrace(PTRACE_INTERRUPT, worker, 0, 0)) << strerror(errno); in TEST_F()
537 wait_for_ptrace_stop(worker); in TEST_F()
545 ASSERT_EQ(0, ptrace(PTRACE_SEIZE, worker, 0, 0)) << strerror(errno); in TEST_F()
546 ASSERT_EQ(0, ptrace(PTRACE_INTERRUPT, worker, 0, 0)) << strerror(errno); in TEST_F()
547 wait_for_ptrace_stop(worker); in TEST_F()
548 ASSERT_EQ(0, ptrace(PTRACE_CONT, worker, 0, 0)) << strerror(errno); in TEST_F()
555 StartTracer([this]() { ASSERT_EQ(0, ptrace(PTRACE_SEIZE, worker, 0, 0)) << strerror(errno); }); in TEST_F()
562 ASSERT_EQ(0, ptrace(PTRACE_SEIZE, worker, 0, 0)) << strerror(errno); in TEST_F()
563 ASSERT_EQ(0, ptrace(PTRACE_INTERRUPT, worker, 0, 0)) << strerror(errno); in TEST_F()
564 wait_for_ptrace_stop(worker); in TEST_F()
572 ASSERT_EQ(0, ptrace(PTRACE_SEIZE, worker, 0, 0)) << strerror(errno); in TEST_F()
573 ASSERT_EQ(0, ptrace(PTRACE_INTERRUPT, worker, 0, 0)) << strerror(errno); in TEST_F()
574 wait_for_ptrace_stop(worker); in TEST_F()
575 ASSERT_EQ(0, ptrace(PTRACE_CONT, worker, 0, 0)) << strerror(errno); in TEST_F()