Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-06-02 06:36:50 +0400
committerChristopher Faylor <me@cgf.cx>2005-06-02 06:36:50 +0400
commitf9fb1149d5b1c0c15f9a554677019dbc5426ed83 (patch)
tree8fe8ccb9c158b20d4bd15d17bd741b00921c2a32 /winsup/cygwin/syscalls.cc
parent5ac6edefaf90729f8da0b872f89b146242d0946e (diff)
Revert 2005-05-30 close_all_files changes.
* spawn.cc (spawn_guts): When execing, close all files after the child has synced with us.
Diffstat (limited to 'winsup/cygwin/syscalls.cc')
-rw-r--r--winsup/cygwin/syscalls.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc
index 022282036..c67bc3799 100644
--- a/winsup/cygwin/syscalls.cc
+++ b/winsup/cygwin/syscalls.cc
@@ -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)