aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-10-19 00:35:20 +0000
committerChristopher Faylor <me@cgf.cx>2002-10-19 00:35:20 +0000
commit824166e620dcffbd338795d6944281bc022e9ecf (patch)
treef7d275db5c85392fdd8a503bce84c9b1749ba153
parent60bc7b5977b45844adb1223096066d635d6da0a2 (diff)
downloadnewlib-824166e620dcffbd338795d6944281bc022e9ecf.zip
newlib-824166e620dcffbd338795d6944281bc022e9ecf.tar.gz
newlib-824166e620dcffbd338795d6944281bc022e9ecf.tar.bz2
* cygthread.cc: Bump number of cygthreads up to accommodate applications which
use ttys.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/cygthread.cc2
-rw-r--r--winsup/cygwin/heap.cc2
3 files changed, 7 insertions, 2 deletions
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 <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 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