* pinfo.cc (_pinfo::fds): Lock fdtab while enumerating.

This commit is contained in:
Christopher Faylor 2005-10-24 15:42:14 +00:00
parent 6485bf0b33
commit 6573722005
2 changed files with 5 additions and 1 deletions

View file

@ -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

View file

@ -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 ();