diff options
author | hsu <hsu@FreeBSD.org> | 1996-03-11 05:55:56 +0000 |
---|---|---|
committer | hsu <hsu@FreeBSD.org> | 1996-03-11 05:55:56 +0000 |
commit | 7530dffb8e2cba4133ded13b9338bdc0b36016af (patch) | |
tree | 49a628a42f6c37e1aca14d3e37e1fd4d4f121a28 /sys/ddb/db_ps.c | |
parent | 2c9ab500e55da8fa504b70752896ab5cc5aef4cb (diff) | |
download | FreeBSD-src-7530dffb8e2cba4133ded13b9338bdc0b36016af.zip FreeBSD-src-7530dffb8e2cba4133ded13b9338bdc0b36016af.tar.gz |
For Lite2: proc LIST changes.
Reviewed by: david & bde
Diffstat (limited to 'sys/ddb/db_ps.c')
-rw-r--r-- | sys/ddb/db_ps.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/ddb/db_ps.c b/sys/ddb/db_ps.c index ca47f0f..780d4e6 100644 --- a/sys/ddb/db_ps.c +++ b/sys/ddb/db_ps.c @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: db_ps.c,v 1.9 1995/12/07 12:44:56 davidg Exp $ + * $Id: db_ps.c,v 1.10 1995/12/10 19:08:08 bde Exp $ */ #include <sys/param.h> #include <sys/systm.h> @@ -53,8 +53,8 @@ db_ps(dummy1, dummy2, dummy3, dummy4) np = nprocs; - if (allproc != NULL) - p = allproc; + if (allproc.lh_first != NULL) + p = allproc.lh_first; else p = &proc0; @@ -98,8 +98,8 @@ db_ps(dummy1, dummy2, dummy3, dummy4) } db_printf(" %s\n", p->p_comm ? p->p_comm : ""); - p = p->p_next; + p = p->p_list.le_next; if (p == NULL && np > 0) - p = zombproc; + p = zombproc.lh_first; } } |