From cabc77f9172d74ff0bfc56d0797a6a8255b14f2a Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Tue, 28 Nov 2017 12:55:19 -0800 Subject: Always wrap waitpid in TEMP_FAILURE_RETRY. Strictly not needed in the WNOHANG case, but it's probably best to have every waitpid wrapped for future copy & pasters. Bug: https://issuetracker.google.com/69525592 Test: ran tests Change-Id: I013b0a52d2753e3d32638e9b84c79af7327fb405 --- libc/malloc_debug/tests/malloc_debug_unit_tests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libc/malloc_debug/tests/malloc_debug_unit_tests.cpp') diff --git a/libc/malloc_debug/tests/malloc_debug_unit_tests.cpp b/libc/malloc_debug/tests/malloc_debug_unit_tests.cpp index d7ba379c9..4e9066812 100644 --- a/libc/malloc_debug/tests/malloc_debug_unit_tests.cpp +++ b/libc/malloc_debug/tests/malloc_debug_unit_tests.cpp @@ -1385,7 +1385,7 @@ TEST_F(MallocDebugTest, backtrace_dump_on_exit) { exit(0); } ASSERT_NE(-1, pid); - ASSERT_EQ(pid, waitpid(pid, nullptr, 0)); + ASSERT_EQ(pid, TEMP_FAILURE_RETRY(waitpid(pid, nullptr, 0))); // Read all of the contents. std::string actual; -- cgit v1.2.3