From 824166e620dcffbd338795d6944281bc022e9ecf Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sat, 19 Oct 2002 00:35:20 +0000 Subject: * cygthread.cc: Bump number of cygthreads up to accommodate applications which use ttys. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/cygthread.cc | 2 +- winsup/cygwin/heap.cc | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 156210b69..9fbdfe49a 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2002-10-18 Christopher Faylor + + * cygthread.cc: Bump number of cygthreads up to accommodate + applications which use ttys. + 2002-10-18 Christopher Faylor * fork.cc (fork_child): Move mmap initialization. diff --git a/winsup/cygwin/cygthread.cc b/winsup/cygwin/cygthread.cc index d4295e61b..76f11390d 100644 --- a/winsup/cygwin/cygthread.cc +++ b/winsup/cygwin/cygthread.cc @@ -15,7 +15,7 @@ details. */ #undef CloseHandle -static cygthread NO_COPY threads[6]; +static cygthread NO_COPY threads[9]; #define NTHREADS (sizeof (threads) / sizeof (threads[0])) DWORD NO_COPY cygthread::main_thread_id; diff --git a/winsup/cygwin/heap.cc b/winsup/cygwin/heap.cc index 139b1d5a0..1292048b7 100644 --- a/winsup/cygwin/heap.cc +++ b/winsup/cygwin/heap.cc @@ -60,7 +60,7 @@ heap_init () cygheap->heapbase, cygwin_shared->heap_chunk_size (), myself->pid); if (p != cygheap->heapbase) api_fatal ("heap allocated but not at %p", cygheap->heapbase); - if (! VirtualAlloc (cygheap->heapbase, allocsize, MEM_COMMIT, PAGE_READWRITE)) + if (!VirtualAlloc (cygheap->heapbase, allocsize, MEM_COMMIT, PAGE_READWRITE)) api_fatal ("MEM_COMMIT failed, %E"); } else -- cgit v1.2.3