* cygthread.cc: Bump number of cygthreads up to accommodate applications which
use ttys.
This commit is contained in:
parent
60bc7b5977
commit
824166e620
|
@ -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>
|
2002-10-18 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
* fork.cc (fork_child): Move mmap initialization.
|
* fork.cc (fork_child): Move mmap initialization.
|
||||||
|
|
|
@ -15,7 +15,7 @@ details. */
|
||||||
|
|
||||||
#undef CloseHandle
|
#undef CloseHandle
|
||||||
|
|
||||||
static cygthread NO_COPY threads[6];
|
static cygthread NO_COPY threads[9];
|
||||||
#define NTHREADS (sizeof (threads) / sizeof (threads[0]))
|
#define NTHREADS (sizeof (threads) / sizeof (threads[0]))
|
||||||
|
|
||||||
DWORD NO_COPY cygthread::main_thread_id;
|
DWORD NO_COPY cygthread::main_thread_id;
|
||||||
|
|
|
@ -60,7 +60,7 @@ heap_init ()
|
||||||
cygheap->heapbase, cygwin_shared->heap_chunk_size (), myself->pid);
|
cygheap->heapbase, cygwin_shared->heap_chunk_size (), myself->pid);
|
||||||
if (p != cygheap->heapbase)
|
if (p != cygheap->heapbase)
|
||||||
api_fatal ("heap allocated but not at %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");
|
api_fatal ("MEM_COMMIT failed, %E");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue