diff options
Diffstat (limited to 'winsup/cygwin/fork.cc')
-rw-r--r-- | winsup/cygwin/fork.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/fork.cc b/winsup/cygwin/fork.cc index ac9f855e9..5c7bad339 100644 --- a/winsup/cygwin/fork.cc +++ b/winsup/cygwin/fork.cc @@ -442,8 +442,7 @@ fork_parent (HANDLE& hParent, dll *&first_dll, RevertToSelf (); ch.parent = hParent; - ch.cygheap = cygheap; - ch.cygheap_max = cygheap_max; + cygheap_setup_for_child (&ch); #ifdef DEBUGGING if (npid_max) { @@ -477,6 +476,7 @@ out: &pi); CloseHandle (hParent); + ForceCloseHandle1 (ch.cygheap_h, passed_cygheap_h); if (!rc) { |