* cygtls.h (_cygtls): Perform minor reformatting.
* winsup.h (close_all_files): Reflect argument change. * dtable.cc (close_all_files): Ditto. * dtable.h: Ditto. * fhandler.h: Ditto. * spawn.cc (spawn_guts): Move close_all_files back to its original location in first P_OVERLAY test but use argument denoting that handles are only supposed to be closed, not released (more work to be done here). * syscalls.cc (close_all_files): Take an argument denoting whether to release closed files or not. * path.cc (symlink): Change argument names to reflect linux man page. (symlink_worker): Ditto. Also appropriately set ENOENT for empty strings.
This commit is contained in:
@@ -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 ()
|
||||
close_all_files (bool norelease)
|
||||
{
|
||||
cygheap->fdtab.lock ();
|
||||
|
||||
@@ -106,7 +106,8 @@ close_all_files ()
|
||||
debug_printf ("closing fd %d", i);
|
||||
#endif
|
||||
fh->close ();
|
||||
cygheap->fdtab.release (i);
|
||||
if (!norelease)
|
||||
cygheap->fdtab.release (i);
|
||||
}
|
||||
|
||||
if (cygheap->ctty)
|
||||
|
Reference in New Issue
Block a user