diff options
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) |