From 2e3c8fcbd03b568879cf99db149e31002841cb8c Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Tue, 16 Nov 1999 10:56:05 +0000 Subject: This is a partial commit of the patch from PR 14914: Alot of the code in sys/kern directly accesses the *Q_HEAD and *Q_ENTRY structures for list operations. This patch makes all list operations in sys/kern use the queue(3) macros, rather than directly accessing the *Q_{HEAD,ENTRY} structures. This batch of changes compile to the same object files. Reviewed by: phk Submitted by: Jake Burkholder PR: 14914 --- sys/kern/kern_fork.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/kern/kern_fork.c') diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index 2fb15cfcf8bb..0fbe915fa72a 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -274,9 +274,9 @@ retry: * is in use. Remember the lowest pid that's greater * than nextpid, so we can avoid checking for a while. */ - p2 = allproc.lh_first; + p2 = LIST_FIRST(&allproc); again: - for (; p2 != 0; p2 = p2->p_list.le_next) { + for (; p2 != 0; p2 = LIST_NEXT(p2, p_list)) { while (p2->p_pid == nextpid || p2->p_pgrp->pg_id == nextpid || p2->p_session->s_sid == nextpid) { @@ -295,7 +295,7 @@ again: } if (!doingzomb) { doingzomb = 1; - p2 = zombproc.lh_first; + p2 = LIST_FIRST(&zombproc); goto again; } } -- cgit v1.2.3