* spawn.cc (spawn_guts): Hide the window whenever ctty == -1, not just when we

have no console.
This commit is contained in:
Christopher Faylor 2005-12-21 17:20:43 +00:00
parent 247ac234f4
commit 01032746d1
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-12-21 Christopher Faylor <cgf@timesys.com>
* spawn.cc (spawn_guts): Hide the window whenever ctty == -1, not just
when we have no console.
2005-12-21 Christopher Faylor <cgf@timesys.com>
* cygheap.cc (init_cygheap::manage_console_count): Revert previous

View File

@ -579,7 +579,7 @@ spawn_guts (const char * prog_arg, const char *const *argv,
si.hStdOutput = handle (1, 1); /* Get output handle */
si.hStdError = handle (2, 1); /* Get output handle */
si.cb = sizeof (si);
if (!wincap.pty_needs_alloc_console () && newargv.iscui && !GetConsoleCP ())
if (!wincap.pty_needs_alloc_console () && newargv.iscui && myself->ctty == -1)
{
si.dwFlags |= STARTF_USESHOWWINDOW;
si.wShowWindow = SW_HIDE;