Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-10-24 19:42:14 +0400
committerChristopher Faylor <me@cgf.cx>2005-10-24 19:42:14 +0400
commit65737220058b00e3b5c5c7696f0255b2c2fda805 (patch)
tree2617fc85e14f17f7889b235783f6b917620c518f /winsup
parent6485bf0b339c5d12c462964a0553cfb827a6b874 (diff)
* pinfo.cc (_pinfo::fds): Lock fdtab while enumerating.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/pinfo.cc2
2 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 52fc5e375..fbcb6909a 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,7 @@
+2005-10-24 Christopher Faylor <cgf@timesys.com>
+
+ * pinfo.cc (_pinfo::fds): Lock fdtab while enumerating.
+
2005-10-24 Corinna Vinschen <corinna@vinschen.de>
* spawn.cc (spawn_guts): Don't leave the function with return inside
diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc
index 185475632..098b67e41 100644
--- a/winsup/cygwin/pinfo.cc
+++ b/winsup/cygwin/pinfo.cc
@@ -729,7 +729,7 @@ _pinfo::fds (size_t &n)
{
n = 0;
int fd;
- cygheap_fdenum cfd;
+ cygheap_fdenum cfd (true);
while ((fd = cfd.next ()) >= 0)
n += sizeof (int);
cfd.rewind ();