* spawn.cc (spawn_guts): Hide the window whenever ctty == -1, not just when we
have no console.
This commit is contained in:
parent
247ac234f4
commit
01032746d1
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue