diff options
author | Christopher Faylor <me@cgf.cx> | 2005-10-24 15:42:14 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-10-24 15:42:14 +0000 |
commit | 65737220058b00e3b5c5c7696f0255b2c2fda805 (patch) | |
tree | 2617fc85e14f17f7889b235783f6b917620c518f /winsup/cygwin/pinfo.cc | |
parent | 6485bf0b339c5d12c462964a0553cfb827a6b874 (diff) | |
download | cygnal-65737220058b00e3b5c5c7696f0255b2c2fda805.tar.gz cygnal-65737220058b00e3b5c5c7696f0255b2c2fda805.tar.bz2 cygnal-65737220058b00e3b5c5c7696f0255b2c2fda805.zip |
* pinfo.cc (_pinfo::fds): Lock fdtab while enumerating.
Diffstat (limited to 'winsup/cygwin/pinfo.cc')
-rw-r--r-- | winsup/cygwin/pinfo.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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 (); |