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

Unified Diff: subprocess.h

Issue 3723005: AU: Pass opened device fd from update engine to bspatch. (Closed) Base URL: ssh://git@chromiumos-git/update_engine.git
Patch Set: fix for review (StringPrintf()) Created 10 years, 2 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 | « delta_performer.cc ('k') | subprocess.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: subprocess.h
diff --git a/subprocess.h b/subprocess.h
index 8f97c5d2b8be5a8938b946908e7d66fe2c80edac..bf1e7ea7ca4cfe3b17628236be8b9e04d4c2f0a6 100644
--- a/subprocess.h
+++ b/subprocess.h
@@ -37,8 +37,13 @@ class Subprocess {
void CancelExec(uint32_t tag);
// Executes a command synchronously. Returns true on success.
+ static bool SynchronousExecFlags(const std::vector<std::string>& cmd,
+ int* return_code,
+ GSpawnFlags flags);
static bool SynchronousExec(const std::vector<std::string>& cmd,
- int* return_code);
+ int* return_code) {
+ return SynchronousExecFlags(cmd, return_code, static_cast<GSpawnFlags>(0));
+ }
// Gets the one instance
static Subprocess& Get() {
« no previous file with comments | « delta_performer.cc ('k') | subprocess.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698