Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Unified Diff: util/test/multiprocess.cc

Issue 592633002: Multiprocess: wrap waitpid() in HANDLE_EINTR(). (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698