* pinfo.cc (_pinfo::fds): Lock fdtab while enumerating.
This commit is contained in:
parent
6485bf0b33
commit
6573722005
|
@ -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>
|
2005-10-24 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* spawn.cc (spawn_guts): Don't leave the function with return inside
|
* spawn.cc (spawn_guts): Don't leave the function with return inside
|
||||||
|
|
|
@ -729,7 +729,7 @@ _pinfo::fds (size_t &n)
|
||||||
{
|
{
|
||||||
n = 0;
|
n = 0;
|
||||||
int fd;
|
int fd;
|
||||||
cygheap_fdenum cfd;
|
cygheap_fdenum cfd (true);
|
||||||
while ((fd = cfd.next ()) >= 0)
|
while ((fd = cfd.next ()) >= 0)
|
||||||
n += sizeof (int);
|
n += sizeof (int);
|
||||||
cfd.rewind ();
|
cfd.rewind ();
|
||||||
|
|
Loading…
Reference in New Issue