From 4f41ec5bbd95130cfb3c653715677c8f5237788e 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 37db52608..88293fc30 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); -- cgit v1.2.3