OSDN Git Service

* pinfo.cc (winpids::add): Increment nelem when winpid is true since we don't
authorcgf <cgf>
Thu, 22 Dec 2005 05:26:14 +0000 (05:26 +0000)
committercgf <cgf>
Thu, 22 Dec 2005 05:26:14 +0000 (05:26 +0000)
care if it's a cygwin process in that case.

winsup/cygwin/ChangeLog
winsup/cygwin/pinfo.cc

index c3dfbf4..fdd452c 100644 (file)
@@ -1,5 +1,10 @@
 2005-12-22  Christopher Faylor  <cgf@timesys.com>
 
+       * pinfo.cc (winpids::add): Increment nelem when winpid is true since we
+       don't care if it's a cygwin process in that case.
+
+2005-12-22  Christopher Faylor  <cgf@timesys.com>
+
        * pinfo.cc (winpids::release): Fix typo.
 
 2005-12-21  Christopher Faylor  <cgf@timesys.com>
index 7851dda..2cf848e 100644 (file)
@@ -1214,8 +1214,9 @@ out:
              p.destroy = false;
            }
        }
-      pidlist[nelem++] = pid;
     }
+  if (p || winpid)
+    pidlist[nelem++] = pid;
 }
 
 DWORD