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

@@ -94,7 +94,7 @@ static int __stdcall stat_worker (const char *name, struct __stat64 *buf,
ensure we don't leave any such files lying around. */
void __stdcall
close_all_files (bool keep_table)
close_all_files ()
{
cygheap->fdtab.lock ();
@@ -106,8 +106,7 @@ close_all_files (bool keep_table)
debug_printf ("closing fd %d", i);
#endif
fh->close ();
if (!keep_table)
cygheap->fdtab.release (i);
cygheap->fdtab.release (i);
}
if (cygheap->ctty)