Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2002-04-09 20:33:13 +0400
committerCorinna Vinschen <corinna@vinschen.de>2002-04-09 20:33:13 +0400
commit464b3e80393a0f6e4187e9a3fa7dec611bc35076 (patch)
tree278d9b3f6a356fbb2923f3ae64c41f689ec6ce73 /winsup
parentd78bda7b75c472de6c4b572df3033fb732057cb6 (diff)
* fork.cc (fork_child): Call fixup_mmaps_after_fork() somewhat earlier.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/fork.cc6
2 files changed, 7 insertions, 3 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 5c87b47dd..359cf71e1 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,9 @@
2002-04-09 Corinna Vinschen <corinna@vinschen.de>
+ * fork.cc (fork_child): Call fixup_mmaps_after_fork() somewhat earlier.
+
+2002-04-09 Corinna Vinschen <corinna@vinschen.de>
+
* fhandler.cc (fhandler_base::open): Set read-only bit in
file_attributes when adequate.
diff --git a/winsup/cygwin/fork.cc b/winsup/cygwin/fork.cc
index 03d17ee65..66f2d220f 100644
--- a/winsup/cygwin/fork.cc
+++ b/winsup/cygwin/fork.cc
@@ -284,6 +284,9 @@ fork_child (HANDLE& hParent, dll *&first_dll, bool& load_dlls)
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.
@@ -296,9 +299,6 @@ fork_child (HANDLE& hParent, dll *&first_dll, bool& load_dlls)
sync_with_parent ("loaded dlls", TRUE);
}
- if (fixup_mmaps_after_fork (hParent))
- api_fatal ("recreate_mmaps_after_fork_failed");
-
ForceCloseHandle (hParent);
(void) ForceCloseHandle (child_proc_info->subproc_ready);
(void) ForceCloseHandle (child_proc_info->forker_finished);