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

Unified Diff: base/process_util_linux.cc

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/message_pump_libevent.cc ('k') | base/process_util_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process_util_linux.cc
diff --git a/base/process_util_linux.cc b/base/process_util_linux.cc
index f8e8a04765f1d8a5541c671362f6379aad00bd1b..2936a85f7daf5ecb76cd3b86be743aa24c32b646 100644
--- a/base/process_util_linux.cc
+++ b/base/process_util_linux.cc
@@ -12,6 +12,7 @@
#include <sys/types.h>
#include <sys/wait.h>
+#include "base/eintr_wrappers.h"
#include "base/file_util.h"
#include "base/logging.h"
#include "base/string_tokenizer.h"
@@ -55,7 +56,7 @@ bool LaunchApp(const std::vector<std::string>& argv,
exit(127);
} 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/message_pump_libevent.cc ('k') | base/process_util_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698