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(-) (limited to 'winsup/cygwin') diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 156210b..9fbdfe4 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,10 @@ 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. * shared.cc (shared_info::heap_chunk_size): Store info as megabytes. Search HKEY_LOCAL_MACHINE as well as HKEY_CURRENT_USER. diff --git a/winsup/cygwin/cygthread.cc b/winsup/cygwin/cygthread.cc index d4295e6..76f1139 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 139b1d5..1292048 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.1