From 0bb91139d75f693c56179ce8c05e4644a7b0fb02 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Thu, 30 Jun 2016 20:49:22 -0700 Subject: 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. --- winsup/cygwin/spawn.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3