Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-10-08 08:26:27 +0400
committerChristopher Faylor <me@cgf.cx>2001-10-08 08:26:27 +0400
commit2c774ac3f368e61613be8af75eba028d820b5a4b (patch)
treecf285a8b460ade68df7263394de151e7ca6d35a7 /winsup
parent12f6d7bc9c03c6fdb97251350d8d3edce85f0396 (diff)
* external.cc (fillout_pinfo): Reset counter whenever we initialize the pid
list.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/external.cc7
2 files changed, 10 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 05a7f3016..5d9a82858 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -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
diff --git a/winsup/cygwin/external.cc b/winsup/cygwin/external.cc
index 099993e5c..a4b81be92 100644
--- a/winsup/cygwin/external.cc
+++ b/winsup/cygwin/external.cc
@@ -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;