OSDN Git Service

* pinfo.cc (_pinfo::fds): Lock fdtab while enumerating.
authorcgf <cgf>
Mon, 24 Oct 2005 15:42:14 +0000 (15:42 +0000)
committercgf <cgf>
Mon, 24 Oct 2005 15:42:14 +0000 (15:42 +0000)
winsup/cygwin/ChangeLog
winsup/cygwin/pinfo.cc

index 52fc5e3..fbcb690 100644 (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
index 1854756..098b67e 100644 (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 ();