summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-06-30 20:49:22 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-07-26 21:52:19 -0700
commit0bb91139d75f693c56179ce8c05e4644a7b0fb02 (patch)
tree61c8e3702ec0e36dfa9e76d151ee967de4087dfe
parentf578883232d578bd83132f1f94a7f6826a74048e (diff)
downloadcygnal-0bb91139d75f693c56179ce8c05e4644a7b0fb02.tar.gz
cygnal-0bb91139d75f693c56179ce8c05e4644a7b0fb02.tar.bz2
cygnal-0bb91139d75f693c56179ce8c05e4644a7b0fb02.zip
Use wShowWindow when calling CreateProcess.
* winsup/cygwin/spawn.cc (child_info_spawn::worker): Add STARTF_USESHOWWINDOW to dwFlags of the STARTUPINFOW structure, and set wShowWindow to SW_SHOWNORMAL.
-rw-r--r--winsup/cygwin/spawn.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc
index ec0cdd408..ca7ecf380 100644
--- a/winsup/cygwin/spawn.cc
+++ b/winsup/cygwin/spawn.cc
@@ -707,10 +707,11 @@ child_info_spawn::worker (const char *prog_arg, const char *const *argv,
}
/* Set up needed handles for stdio */
- si.dwFlags = STARTF_USESTDHANDLES;
+ si.dwFlags = STARTF_USESTDHANDLES | STARTF_USESHOWWINDOW;
si.hStdInput = handle ((in__stdin < 0 ? 0 : in__stdin), false);
si.hStdOutput = handle ((in__stdout < 0 ? 1 : in__stdout), true);
si.hStdError = handle (2, true);
+ si.wShowWindow = SW_SHOWNORMAL;
si.cb = sizeof (si);