Index: cygheap.cc =================================================================== RCS file: /cvs/src/src/winsup/cygwin/cygheap.cc,v retrieving revision 1.66 diff -u -r1.66 cygheap.cc --- cygheap.cc 30 Jul 2002 01:31:51 -0000 1.66 +++ cygheap.cc 6 Aug 2002 17:54:50 -0000 @@ -61,6 +61,7 @@ api_fatal ("AllocationBase %p, BaseAddress %p, RegionSize %p, State %p\n", m.AllocationBase, m.BaseAddress, m.RegionSize, m.State); } + cygheap_max = cygheap; } static void dup_now (void *, child_info *, unsigned) __attribute__ ((regparm(3))); @@ -176,9 +177,8 @@ if (!cygheap) { init_cheap (); - cygheap_max = cygheap; - (void) _csbrk ((int) pagetrunc (4095 + sbs + sizeof (*cygheap))); - prebrk = (char *) (cygheap + 1) + sbs; + (void) _csbrk (sizeof (*cygheap) + sbs); + prebrk = (char *) (cygheap + 1); } else {