diff options
author | Christopher Faylor <me@cgf.cx> | 2001-10-08 04:26:27 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-10-08 04:26:27 +0000 |
commit | 2c774ac3f368e61613be8af75eba028d820b5a4b (patch) | |
tree | cf285a8b460ade68df7263394de151e7ca6d35a7 /winsup/cygwin/external.cc | |
parent | 12f6d7bc9c03c6fdb97251350d8d3edce85f0396 (diff) | |
download | cygnal-2c774ac3f368e61613be8af75eba028d820b5a4b.tar.gz cygnal-2c774ac3f368e61613be8af75eba028d820b5a4b.tar.bz2 cygnal-2c774ac3f368e61613be8af75eba028d820b5a4b.zip |
* external.cc (fillout_pinfo): Reset counter whenever we initialize the pid
list.
Diffstat (limited to 'winsup/cygwin/external.cc')
-rw-r--r-- | winsup/cygwin/external.cc | 7 |
1 files changed, 5 insertions, 2 deletions
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; |