diff options
author | Christopher Faylor <me@cgf.cx> | 2002-10-19 04:35:20 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-10-19 04:35:20 +0400 |
commit | 824166e620dcffbd338795d6944281bc022e9ecf (patch) | |
tree | f7d275db5c85392fdd8a503bce84c9b1749ba153 /winsup/cygwin | |
parent | 60bc7b5977b45844adb1223096066d635d6da0a2 (diff) |
* cygthread.cc: Bump number of cygthreads up to accommodate applications which
use ttys.
Diffstat (limited to 'winsup/cygwin')
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/cygthread.cc | 2 | ||||
-rw-r--r-- | 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,5 +1,10 @@ 2002-10-18 Christopher Faylor <cgf@redhat.com> + * cygthread.cc: Bump number of cygthreads up to accommodate + applications which use ttys. + +2002-10-18 Christopher Faylor <cgf@redhat.com> + * 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 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 |