diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2017-11-29 00:23:11 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-11-29 00:23:11 +0000 |
commit | 0a25aa60a2a7cc6b681dd2e31321000cedbff77e (patch) | |
tree | 71a9010357ac5f4c35035066e6676a9857a4a547 /tests/gtest_main.cpp | |
parent | 72dcf2340ffb3215bb5f71515d2b59ec88d331a4 (diff) | |
parent | cabc77f9172d74ff0bfc56d0797a6a8255b14f2a (diff) |
Merge "Always wrap waitpid in TEMP_FAILURE_RETRY."
Diffstat (limited to 'tests/gtest_main.cpp')
-rw-r--r-- | tests/gtest_main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gtest_main.cpp b/tests/gtest_main.cpp index 3f59a9c04..33dbfd933 100644 --- a/tests/gtest_main.cpp +++ b/tests/gtest_main.cpp @@ -324,7 +324,7 @@ static bool EnumerateTests(int argc, char** argv, std::vector<TestCase>& testcas } int status; - if (waitpid(pid, &status, 0) != pid) { + if (TEMP_FAILURE_RETRY(waitpid(pid, &status, 0)) != pid) { perror("waitpid"); return false; } |