* cygthread.cc: Bump number of cygthreads up to accommodate applications which

use ttys.
This commit is contained in:
Christopher Faylor 2002-10-19 00:35:20 +00:00
parent 60bc7b5977
commit 824166e620
3 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
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.

View File

@ -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;

View File

@ -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