aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/fork.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-10-18 23:52:59 +0000
committerChristopher Faylor <me@cgf.cx>2002-10-18 23:52:59 +0000
commit60bc7b5977b45844adb1223096066d635d6da0a2 (patch)
tree8d4efcd95b8be087fdbe4fecc6742fb043897ccf /winsup/cygwin/fork.cc
parent978ea3cf1c7b0e06791df78ade33d3c8201d7a15 (diff)
downloadnewlib-60bc7b5977b45844adb1223096066d635d6da0a2.zip
newlib-60bc7b5977b45844adb1223096066d635d6da0a2.tar.gz
newlib-60bc7b5977b45844adb1223096066d635d6da0a2.tar.bz2
* 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. * shared_info.h (shared_info::initial_heap_size): Change element name to reflect new functionality. * strace.cc (strace::hello): Report on initial heap size.
Diffstat (limited to 'winsup/cygwin/fork.cc')
-rw-r--r--winsup/cygwin/fork.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/fork.cc b/winsup/cygwin/fork.cc
index c3045c4..0d57bc4 100644
--- a/winsup/cygwin/fork.cc
+++ b/winsup/cygwin/fork.cc
@@ -280,14 +280,14 @@ fork_child (HANDLE& hParent, dll *&first_dll, bool& load_dlls)
cygheap->fdtab.fixup_after_fork (hParent);
ProtectHandleINH (hParent);
+ if (fixup_mmaps_after_fork (hParent))
+ api_fatal ("recreate_mmaps_after_fork_failed");
+
pinfo_fixup_after_fork ();
signal_fixup_after_fork ();
MALLOC_CHECK;
- if (fixup_mmaps_after_fork (hParent))
- api_fatal ("recreate_mmaps_after_fork_failed");
-
/* If we haven't dynamically loaded any dlls, just signal
the parent. Otherwise, load all the dlls, tell the parent
that we're done, and wait for the parent to fill in the.