diff options
author | Christopher Faylor <me@cgf.cx> | 2005-06-02 02:36:50 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-06-02 02:36:50 +0000 |
commit | f9fb1149d5b1c0c15f9a554677019dbc5426ed83 (patch) | |
tree | 8fe8ccb9c158b20d4bd15d17bd741b00921c2a32 /winsup/cygwin/syscalls.cc | |
parent | 5ac6edefaf90729f8da0b872f89b146242d0946e (diff) | |
download | cygnal-f9fb1149d5b1c0c15f9a554677019dbc5426ed83.tar.gz cygnal-f9fb1149d5b1c0c15f9a554677019dbc5426ed83.tar.bz2 cygnal-f9fb1149d5b1c0c15f9a554677019dbc5426ed83.zip |
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.cc | 5 |
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) |