aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/tools/launcher/launcher.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/launcher/launcher.cc')
-rw-r--r--src/tools/launcher/launcher.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/tools/launcher/launcher.cc b/src/tools/launcher/launcher.cc
index a657fa41e7..d26506e1b1 100644
--- a/src/tools/launcher/launcher.cc
+++ b/src/tools/launcher/launcher.cc
@@ -176,8 +176,9 @@ bool BinaryLauncherBase::PrintLauncherCommandLine(
return has_print_cmd_flag;
}
-ExitCode BinaryLauncherBase::LaunchProcess(
- const string& executable, const vector<string>& arguments) const {
+ExitCode BinaryLauncherBase::LaunchProcess(const string& executable,
+ const vector<string>& arguments,
+ bool suppressOutput) const {
if (PrintLauncherCommandLine(executable, arguments)) {
return 0;
}
@@ -194,7 +195,9 @@ ExitCode BinaryLauncherBase::LaunchProcess(
/* lpProcessAttributes */ NULL,
/* lpThreadAttributes */ NULL,
/* bInheritHandles */ FALSE,
- /* dwCreationFlags */ 0,
+ /* dwCreationFlags */
+ suppressOutput ? CREATE_NO_WINDOW // no console window => no output
+ : 0,
/* lpEnvironment */ NULL,
/* lpCurrentDirectory */ NULL,
/* lpStartupInfo */ &startupInfo,