Conrad Scott <conrad.scott@dsl.pipex.com

* cygheap.cc (_csbrk): Allocate some slop initially.  Don't erroneously add
sbrk amount to returned value in initial case.
This commit is contained in:
Christopher Faylor 2002-08-06 22:05:53 +00:00
parent 32438c512a
commit e851d2fe43
3 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2002-08-06 Christopher Faylor <cgf@redhat.com>
Conrad Scott <conrad.scott@dsl.pipex.com
* cygheap.cc (_csbrk): Allocate some slop initially. Don't erroneously
add sbrk amount to returned value in initial case.
2002-08-06 Christopher Faylor <cgf@redhat.com>
* spawn.cc (spawn_guts): Don't set mount_h here.

View File

@ -177,8 +177,8 @@ _csbrk (int sbs)
{
init_cheap ();
cygheap_max = cygheap;
(void) _csbrk ((int) pagetrunc (4095 + sbs + sizeof (*cygheap)));
prebrk = (char *) (cygheap + 1) + sbs;
(void) _csbrk (sbs + sizeof (*cygheap) + (2 * system_info.dwPageSize));
prebrk = (char *) (cygheap + 1);
}
else
{

View File

@ -29,7 +29,7 @@ details. */
shared_info NO_COPY *cygwin_shared = NULL;
mount_info NO_COPY *mount_table = NULL;
HANDLE cygwin_mount_h;
HANDLE NO_COPY cygwin_mount_h;
char * __stdcall
shared_name (const char *str, int num)