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

Unified Diff: base/process_util_mac.mm

Issue 100225: POSIX: Add a macro for handling EINTR. (Closed)
Patch Set: ... Created 11 years, 8 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 | « base/process_util_linux.cc ('k') | base/process_util_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process_util_mac.mm
diff --git a/base/process_util_mac.mm b/base/process_util_mac.mm
index f489bd0f2f8de79b74185d1cc1940283b6f1ce36..c7eb3f385e3f2ca60b050ad9c7b985dbb36924fe 100644
--- a/base/process_util_mac.mm
+++ b/base/process_util_mac.mm
@@ -14,6 +14,7 @@
#include <string>
+#include "base/eintr_wrappers.h"
#include "base/logging.h"
#include "base/string_util.h"
#include "base/time.h"
@@ -76,7 +77,7 @@ bool LaunchApp(const std::vector<std::string>& argv,
retval = false;
} else {
if (wait)
- waitpid(pid, 0, 0);
+ HANDLE_EINTR(waitpid(pid, 0, 0));
if (process_handle)
*process_handle = pid;
« no previous file with comments | « base/process_util_linux.cc ('k') | base/process_util_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698