Index: util/test/multiprocess.cc |
diff --git a/util/test/multiprocess.cc b/util/test/multiprocess.cc |
index 4c0ce3a0c55b58ec530e19bdaf15b4cdb3c546bb..5b4d1bf4321e0eb95d7ec72c6bf2aabcbfda775d 100644 |
--- a/util/test/multiprocess.cc |
+++ b/util/test/multiprocess.cc |
@@ -23,6 +23,7 @@ |
#include "base/auto_reset.h" |
#include "base/files/scoped_file.h" |
#include "base/memory/scoped_ptr.h" |
+#include "base/posix/eintr_wrapper.h" |
#include "base/strings/stringprintf.h" |
#include "gtest/gtest.h" |
#include "util/misc/scoped_forbid_return.h" |
@@ -90,7 +91,7 @@ void Multiprocess::Run() { |
info_ = NULL; |
int status; |
- pid_t wait_pid = waitpid(pid, &status, 0); |
+ pid_t wait_pid = HANDLE_EINTR(waitpid(pid, &status, 0)); |
ASSERT_EQ(pid, wait_pid) << ErrnoMessage("waitpid"); |
TerminationReason reason; |