diff options
author | Christopher Faylor <me@cgf.cx> | 2000-11-03 04:27:03 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-11-03 04:27:03 +0000 |
commit | bb5d559a73794be49fd63b97086bf7e982504399 (patch) | |
tree | 2ddb43199de5cf752e36a35cf06a51f7803f21dd /winsup/cygwin/syscalls.cc | |
parent | 6857eb1b3b79aa92498e6b9dded43ae4a8265669 (diff) | |
download | cygnal-bb5d559a73794be49fd63b97086bf7e982504399.tar.gz cygnal-bb5d559a73794be49fd63b97086bf7e982504399.tar.bz2 cygnal-bb5d559a73794be49fd63b97086bf7e982504399.zip |
* pinfo.cc (pinfo::init): Reverse order of setting status and pid info in an
execed process to avoid a race.
* sigproc.cc (wait_subproc): Print more info when a WFSO error occurs.
* automode.c: New file.
* syscalls.cc (close_all_files): Streamline slightly.
* cygheap.cc (ccalloc): Clear *entire* allocated array.
Diffstat (limited to 'winsup/cygwin/syscalls.cc')
-rw-r--r-- | winsup/cygwin/syscalls.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index b6970ff71..15bcbfbd1 100644 --- a/winsup/cygwin/syscalls.cc +++ b/winsup/cygwin/syscalls.cc @@ -49,10 +49,11 @@ close_all_files (void) { SetResourceLock(LOCK_FD_LIST,WRITE_LOCK|READ_LOCK," close"); + fhandler_base *fh; for (int i = 0; i < (int) fdtab.size; i++) - if (!fdtab.not_open (i)) + if ((fh = fdtab[i]) != NULL) { - fdtab[i]->close (); + fh->close (); fdtab.release (i); } |