From d4c8d84da6f556265a560515e144c4b03cb4afb1 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Wed, 21 Dec 2005 16:09:25 +0000 Subject: * cygheap.cc (init_cygheap::manage_console_count): Don't call FreeConsole on 9x/Me. --- winsup/cygwin/cygheap.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'winsup/cygwin/cygheap.cc') diff --git a/winsup/cygwin/cygheap.cc b/winsup/cygwin/cygheap.cc index 122e6207a..819de8fe7 100644 --- a/winsup/cygwin/cygheap.cc +++ b/winsup/cygwin/cygheap.cc @@ -96,7 +96,8 @@ 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 (!avoid_freeing_console && amount <= 0 && !console_count && myself->ctty == -1) + if (wincap.pty_needs_alloc_console () && !avoid_freeing_console && amount <= 0 + && !console_count && myself->ctty == -1) { FreeConsole (); debug_printf ("freed console"); -- cgit v1.2.3