fixed pstree bug

aiju 2011-06-26 16:48:30 +02:00
parent f5b8cc5fd4
commit 44e08ff4a1
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ getproc(int pid)
{
Proc *p;
for(p = buck[pid % NBUCKETS].first; p; p = p->next)
for(p = buck[pid % NBUCKETS].first; p; p = p->bnext)
if(p->pid == pid)
return p;