From 01032746d194060ca4d1825a2ce0209dc67f3511 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Wed, 21 Dec 2005 17:20:43 +0000 Subject: [PATCH] * spawn.cc (spawn_guts): Hide the window whenever ctty == -1, not just when we have no console. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/spawn.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 2a3c6d4f4..d3f906afd 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2005-12-21 Christopher Faylor + + * spawn.cc (spawn_guts): Hide the window whenever ctty == -1, not just + when we have no console. + 2005-12-21 Christopher Faylor * cygheap.cc (init_cygheap::manage_console_count): Revert previous 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;