summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/cygheap.h
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-10-24 15:09:07 +0000
committerChristopher Faylor <me@cgf.cx>2005-10-24 15:09:07 +0000
commit16bbf0cc57288917bca2420513462a0cb9c3ce82 (patch)
tree872f1287fb857f8d30d784b06dc92f1eef89b8e3 /winsup/cygwin/cygheap.h
parent95baaf8819c879ee742e422d761b4617fcccee77 (diff)
downloadcygnal-16bbf0cc57288917bca2420513462a0cb9c3ce82.tar.gz
cygnal-16bbf0cc57288917bca2420513462a0cb9c3ce82.tar.bz2
cygnal-16bbf0cc57288917bca2420513462a0cb9c3ce82.zip
* cygheap.h (cygheap_fdenum): Remove start_fd stuff.
(cygheap_fdenum::rewind): Ditto. * pipe.cc (fhandler_pipe::open): Lock fdtab while enumerating. * times.cc (utimes_worker): Ditto.
Diffstat (limited to 'winsup/cygwin/cygheap.h')
-rw-r--r--winsup/cygwin/cygheap.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/winsup/cygwin/cygheap.h b/winsup/cygwin/cygheap.h
index ad4511e5c..c151cd007 100644
--- a/winsup/cygwin/cygheap.h
+++ b/winsup/cygwin/cygheap.h
@@ -394,14 +394,13 @@ class cygheap_fdget : public cygheap_fdmanip
class cygheap_fdenum : public cygheap_fdmanip
{
- int start_fd;
public:
- cygheap_fdenum (int start_fd = -1, bool lockit = false)
+ cygheap_fdenum (bool lockit = false)
{
locked = lockit;
if (lockit)
cygheap->fdtab.lock ();
- this->start_fd = fd = start_fd < 0 ? -1 : start_fd;
+ fd = -1;
}
int next ()
{
@@ -412,7 +411,7 @@ class cygheap_fdenum : public cygheap_fdmanip
}
void rewind ()
{
- fd = start_fd;
+ fd = -1;
}
};