diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-06-30 20:49:22 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2020-10-10 16:52:30 -0700 |
commit | 963a7594327d0fc4dca84411c9ab85a900f64e3c (patch) | |
tree | c690e0d8e4da7710e389ed76b3f3121deb225c46 | |
parent | 668a4c2539245ff21a9d00e8384d1ad0dc6a3600 (diff) | |
download | cygnal-963a7594327d0fc4dca84411c9ab85a900f64e3c.tar.gz cygnal-963a7594327d0fc4dca84411c9ab85a900f64e3c.tar.bz2 cygnal-963a7594327d0fc4dca84411c9ab85a900f64e3c.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.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc index af177c0f1..f74423a95 100644 --- a/winsup/cygwin/spawn.cc +++ b/winsup/cygwin/spawn.cc @@ -641,12 +641,13 @@ 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, iscygwin ()); si.hStdOutput = handle ((in__stdout < 0 ? 1 : in__stdout), true, iscygwin ()); si.hStdError = handle (2, true, iscygwin ()); + si.wShowWindow = SW_SHOWNORMAL; si.cb = sizeof (si); |