mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-21 00:07:36 +08:00
* 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>
|
||||
|
||||
* spawn.cc (spawn_guts): Don't leave the function with return inside
|
||||
|
@ -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 ();
|
||||
|
Loading…
x
Reference in New Issue
Block a user