* external.cc (fillout_pinfo): Reset counter whenever we initialize the pid

list.
This commit is contained in:
Christopher Faylor
2001-10-08 04:26:27 +00:00
parent 12f6d7bc9c
commit 2c774ac3f3
2 changed files with 11 additions and 3 deletions

View File

@@ -32,10 +32,13 @@ fillout_pinfo (pid_t pid, int winpid)
static winpids pids (0);
if (!pids.npids || !nextpid)
pids.init (winpid);
static unsigned int i;
if (!pids.npids || !nextpid)
{
pids.init (winpid);
i = 0;
}
if (!pid)
i = 0;