Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-12-21 20:14:34 +0300
committerChristopher Faylor <me@cgf.cx>2005-12-21 20:14:34 +0300
commit247ac234f46c038e1c23094172a6151efc17c6f0 (patch)
treeac8e7b423834c0ad0eb6ad7ada60a8e100367308 /winsup/cygwin/cygheap.cc
parentd4c8d84da6f556265a560515e144c4b03cb4afb1 (diff)
* cygheap.cc (init_cygheap::manage_console_count): Revert previous change.
Handle this a different way. * external.cc (cygwin_internal): Accommodate extra hook_or_detect_cygwin argument. * hookapi.cc (cygwin_internal): Fill in subsys variable with the subsystem of the executable. * spawn.cc (av::iscui): New variable. (spawn_guts): Hide window when we don't have a console and this isn't NT/XP/2003. (av::fixup): Set iscui flag. * winsup.h (hook_or_detect_cygwin): Accommodate extra argument.
Diffstat (limited to 'winsup/cygwin/cygheap.cc')
-rw-r--r--winsup/cygwin/cygheap.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/winsup/cygwin/cygheap.cc b/winsup/cygwin/cygheap.cc
index 819de8fe7..122e6207a 100644
--- a/winsup/cygwin/cygheap.cc
+++ b/winsup/cygwin/cygheap.cc
@@ -96,8 +96,7 @@ init_cygheap::manage_console_count (const char *something, int amount, bool avoi
console_count += amount;
debug_printf ("%s: console_count %d, amount %d, %s, avoid_freeing_console %d",
something, console_count, amount, myctty (), avoid_freeing_console);
- if (wincap.pty_needs_alloc_console () && !avoid_freeing_console && amount <= 0
- && !console_count && myself->ctty == -1)
+ if (!avoid_freeing_console && amount <= 0 && !console_count && myself->ctty == -1)
{
FreeConsole ();
debug_printf ("freed console");