fixed pstree bug
This commit is contained in:
parent
f5b8cc5fd4
commit
44e08ff4a1
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ getproc(int pid)
|
||||||
{
|
{
|
||||||
Proc *p;
|
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)
|
if(p->pid == pid)
|
||||||
return p;
|
return p;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue