Home
last modified time | relevance | path

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

/aosp12/bionic/benchmarks/
H A Dunistd_benchmark.cpp55 pid_t wait_pid = waitpid(pid, 0, 0); in BM_unistd_fork_call() local
56 if (wait_pid != pid) { in BM_unistd_fork_call()
57 if (wait_pid == -1) { in BM_unistd_fork_call()
62 "waitpid return an unknown pid, expected %d, actual %d", pid, wait_pid); in BM_unistd_fork_call()
/aosp12/system/extras/memory_replay/
H A DFile.cpp61 pid_t wait_pid = TEMP_FAILURE_RETRY(waitpid(pid, &wstatus, 0)); in WaitPid() local
62 if (wait_pid != pid) { in WaitPid()
63 if (wait_pid == -1) { in WaitPid()
66 errx(1, "Unexpected pid from waitpid(): expected %d, returned %d", pid, wait_pid); in WaitPid()
/aosp12/bionic/tests/
H A Dmalloc_iterate_test.cpp258 pid_t wait_pid = TEMP_FAILURE_RETRY(waitpid(pid, nullptr, WNOHANG)); in TEST() local
259 if (wait_pid <= 0) { in TEST()
262 ASSERT_NE(-1, wait_pid) << "Unknown failure in waitpid."; in TEST()
263 ASSERT_EQ(0, wait_pid) << "malloc_disable did not prevent allocation calls."; in TEST()
/aosp12/bionic/libc/malloc_debug/tests/
H A Dmalloc_debug_system_tests.cpp131 int wait_pid = waitpid(*pid, &status, WNOHANG); in Exec() local
132 if (*pid == wait_pid) { in Exec()
145 int wait_pid = waitpid(*pid, &kill_status, WNOHANG); in Exec() local
146 if (wait_pid == *pid || (time(nullptr) - start_time) > timeout_seconds) { in Exec()