Revert 2005-05-30 close_all_files changes.

* spawn.cc (spawn_guts): When execing, close all files after the child has
synced with us.
This commit is contained in:
Christopher Faylor
2005-06-02 02:36:50 +00:00
parent 5ac6edefaf
commit f9fb1149d5
9 changed files with 18 additions and 10 deletions

View File

@@ -61,7 +61,10 @@ cygheap_fixup_in_child (bool execed)
_csbrk ((char *) child_proc_info->cygheap_max - (char *) cygheap);
child_copy (child_proc_info->parent, child_proc_info->dwProcessId, "cygheap", cygheap, cygheap_max);
if (execed)
CloseHandle (child_proc_info->parent);
{
CloseHandle (child_proc_info->parent);
child_proc_info->parent = NULL;
}
cygheap_init ();
debug_fixup_after_fork_exec ();