diff options
author | Christopher Faylor <me@cgf.cx> | 2005-12-21 17:20:43 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-12-21 17:20:43 +0000 |
commit | 01032746d194060ca4d1825a2ce0209dc67f3511 (patch) | |
tree | 325905286990d1b8ee623967c1f18b3dbc9580b2 /winsup/cygwin/spawn.cc | |
parent | 247ac234f46c038e1c23094172a6151efc17c6f0 (diff) | |
download | cygnal-01032746d194060ca4d1825a2ce0209dc67f3511.tar.gz cygnal-01032746d194060ca4d1825a2ce0209dc67f3511.tar.bz2 cygnal-01032746d194060ca4d1825a2ce0209dc67f3511.zip |
* spawn.cc (spawn_guts): Hide the window whenever ctty == -1, not just when we
have no console.
Diffstat (limited to 'winsup/cygwin/spawn.cc')
-rw-r--r-- | winsup/cygwin/spawn.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc index b5997ff86..3b798ffb8 100644 --- a/winsup/cygwin/spawn.cc +++ b/winsup/cygwin/spawn.cc @@ -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; |