1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-02 08:42:48 +00:00

Commented out locking that would be used in the ps command if locks were

used in ddb.
This commit is contained in:
John Baldwin 2002-04-11 21:01:34 +00:00
parent 8e4357a4cb
commit 5a882ddd66
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=94456

View File

@ -55,6 +55,7 @@ db_ps(dummy1, dummy2, dummy3, dummy4)
np = nprocs;
/* sx_slock(&allproc_lock); */
if (!LIST_EMPTY(&allproc))
p = LIST_FIRST(&allproc);
else
@ -90,6 +91,7 @@ db_ps(dummy1, dummy2, dummy3, dummy4)
printf("oops, ran out of processes early!\n");
break;
}
/* PROC_LOCK(p); */
pp = p->p_pptr;
if (pp == NULL)
pp = p;
@ -126,8 +128,11 @@ db_ps(dummy1, dummy2, dummy3, dummy4)
}
db_printf(" %s\n", p->p_comm);
}
/* PROC_UNLOCK(p); */
p = LIST_NEXT(p, p_list);
if (p == NULL && np > 0)
p = LIST_FIRST(&zombproc);
}
/* sx_sunlock(&allproc_lock); */
}