diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2002-03-11 17:57:22 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2002-03-11 17:57:22 +0000 |
commit | 713fb38b7c3f6bcf1d0c1bd845d2264b19a82439 (patch) | |
tree | a4c124b8d85c113c94113fc2cdb6fb52b89580ff /winsup/cygwin/pinfo.h | |
parent | eabb48d53d6bfa3f8dd3564a6b789b6d37c94b65 (diff) | |
download | cygnal-713fb38b7c3f6bcf1d0c1bd845d2264b19a82439.tar.gz cygnal-713fb38b7c3f6bcf1d0c1bd845d2264b19a82439.tar.bz2 cygnal-713fb38b7c3f6bcf1d0c1bd845d2264b19a82439.zip |
* fork.cc (fork_child): Call fixup_mmaps_after_fork() before
closing parent process handle. Call fixup_mmaps_after_fork()
with parent process handle as parameter.
* mmap.cc (mmap_record::access): New method.
(fixup_mmaps_after_fork): Take process handle as parameter.
In case of FILE_MAP_COPY access, copy valid memory regions to child.
* pinfo.h (fixup_mmaps_after_fork): Change prototype accordingly.
Diffstat (limited to 'winsup/cygwin/pinfo.h')
-rw-r--r-- | winsup/cygwin/pinfo.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/pinfo.h b/winsup/cygwin/pinfo.h index 1bc2f7919..dc16966b9 100644 --- a/winsup/cygwin/pinfo.h +++ b/winsup/cygwin/pinfo.h @@ -200,7 +200,7 @@ extern void __stdcall pinfo_fixup_after_fork (); extern HANDLE hexec_proc; /* For mmaps across fork(). */ -int __stdcall fixup_mmaps_after_fork (); +int __stdcall fixup_mmaps_after_fork (HANDLE parent); /* for shm areas across fork (). */ int __stdcall fixup_shms_after_fork (); |