aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-12-21 17:20:43 +0000
committerChristopher Faylor <me@cgf.cx>2005-12-21 17:20:43 +0000
commit01032746d194060ca4d1825a2ce0209dc67f3511 (patch)
tree325905286990d1b8ee623967c1f18b3dbc9580b2
parent247ac234f46c038e1c23094172a6151efc17c6f0 (diff)
downloadnewlib-01032746d194060ca4d1825a2ce0209dc67f3511.zip
newlib-01032746d194060ca4d1825a2ce0209dc67f3511.tar.gz
newlib-01032746d194060ca4d1825a2ce0209dc67f3511.tar.bz2
* spawn.cc (spawn_guts): Hide the window whenever ctty == -1, not just when we
have no console.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/spawn.cc2
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 2a3c6d4..d3f906a 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,10 @@
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
change. Handle this a different way.
* external.cc (cygwin_internal): Accommodate extra
diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc
index b5997ff..3b798ff 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;