]> sourceware.org Git - newlib-cygwin.git/commitdiff
* external.cc (fillout_pinfo): Reset counter whenever we initialize the pid
authorChristopher Faylor <me@cgf.cx>
Mon, 8 Oct 2001 04:26:27 +0000 (04:26 +0000)
committerChristopher Faylor <me@cgf.cx>
Mon, 8 Oct 2001 04:26:27 +0000 (04:26 +0000)
list.

winsup/cygwin/ChangeLog
winsup/cygwin/external.cc

index 05a7f3016a8671e82812d202e25bb8e3ef06f78e..5d9a82858f9110d0d69ef1a2ef2ffa03ddcc36cd 100644 (file)
@@ -1,3 +1,8 @@
+Mon Oct  8 00:25:18 2001  Christopher Faylor <cgf@cygnus.com>
+
+       * external.cc (fillout_pinfo): Reset counter whenever we initialize the
+       pid list.
+
 Sun Oct  7 17:16:05 2001  Christopher Faylor <cgf@cygnus.com>
 
        * path.cc (normalize_posix_path): Don't eat a '.' after a '\\' since it
index 099993e5ca6084a378a1552df8de43e6d6b2e406..a4b81be923377b2d41b27f85b5dfc1ce13602898 100644 (file)
@@ -32,10 +32,13 @@ fillout_pinfo (pid_t pid, int winpid)
 
   static winpids pids (0);
 
+  static unsigned int i;
   if (!pids.npids || !nextpid)
-    pids.init (winpid);
+    {
+      pids.init (winpid);
+      i = 0;
+    }
 
-  static unsigned int i;
   if (!pid)
     i = 0;
 
This page took 0.033021 seconds and 5 git commands to generate.