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

Unified Diff: base/process/process_posix.cc

Issue 812543002: Update from https://crrev.com/308331 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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/process.h ('k') | base/process/process_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process/process_posix.cc
diff --git a/base/process/process_posix.cc b/base/process/process_posix.cc
index 270438e141dda81d2103c2acfe71c012dc222e17..58852bc388c5053f618d86aa01900c0cab771d99 100644
--- a/base/process/process_posix.cc
+++ b/base/process/process_posix.cc
@@ -89,6 +89,18 @@ void Process::Terminate(int result_code) {
KillProcess(process_, result_code, false);
}
+bool Process::WaitForExit(int* exit_code) {
+ // TODO(rvargas) crbug.com/417532: Remove this constant.
+ const int kNoTimeout = -1;
+ return WaitForExitWithTimeout(TimeDelta::FromMilliseconds(kNoTimeout),
+ exit_code);
+}
+
+bool Process::WaitForExitWithTimeout(TimeDelta timeout, int* exit_code) {
+ // TODO(rvargas) crbug.com/417532: Move the implementation here.
+ return base::WaitForExitCodeWithTimeout(Handle(), exit_code, timeout);
+}
+
#if !defined(OS_LINUX)
bool Process::IsProcessBackgrounded() const {
// See SetProcessBackgrounded().
« no previous file with comments | « base/process/process.h ('k') | base/process/process_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698