summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-07-01 03:49:22 (GMT)
committerKaz Kylheku <kaz@kylheku.com>2017-11-17 03:34:43 (GMT)
commit4f41ec5bbd95130cfb3c653715677c8f5237788e (patch)
treef1675aec09dc995ca68702e508681f9f1ba098e0
parente18b7ffa4893aa1011bae52e6e7a8f1bfcc336d5 (diff)
downloadcygnal-4f41ec5bbd95130cfb3c653715677c8f5237788e.zip
cygnal-4f41ec5bbd95130cfb3c653715677c8f5237788e.tar.gz
cygnal-4f41ec5bbd95130cfb3c653715677c8f5237788e.tar.bz2
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 37db526..88293fc 100644
--- a/winsup/cygwin/spawn.cc
+++ b/winsup/cygwin/spawn.cc
@@ -393,10 +393,11 @@ child_info_spawn::worker (const char *prog_arg, const char *const *argv,
pi.dwProcessId = pi.dwThreadId = 0;
/* 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);