* fork.cc (fork_child): Call fixup_mmaps_after_fork() somewhat earlier.
This commit is contained in:
parent
d78bda7b75
commit
464b3e8039
|
@ -1,3 +1,7 @@
|
||||||
|
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>
|
2002-04-09 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* fhandler.cc (fhandler_base::open): Set read-only bit in
|
* fhandler.cc (fhandler_base::open): Set read-only bit in
|
||||||
|
|
|
@ -284,6 +284,9 @@ fork_child (HANDLE& hParent, dll *&first_dll, bool& load_dlls)
|
||||||
|
|
||||||
MALLOC_CHECK;
|
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
|
/* If we haven't dynamically loaded any dlls, just signal
|
||||||
the parent. Otherwise, load all the dlls, tell the parent
|
the parent. Otherwise, load all the dlls, tell the parent
|
||||||
that we're done, and wait for the parent to fill in the.
|
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);
|
sync_with_parent ("loaded dlls", TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fixup_mmaps_after_fork (hParent))
|
|
||||||
api_fatal ("recreate_mmaps_after_fork_failed");
|
|
||||||
|
|
||||||
ForceCloseHandle (hParent);
|
ForceCloseHandle (hParent);
|
||||||
(void) ForceCloseHandle (child_proc_info->subproc_ready);
|
(void) ForceCloseHandle (child_proc_info->subproc_ready);
|
||||||
(void) ForceCloseHandle (child_proc_info->forker_finished);
|
(void) ForceCloseHandle (child_proc_info->forker_finished);
|
||||||
|
|
Loading…
Reference in New Issue