From a627b4629d0c426ab9b769dfe1a352f8cef883c2 Mon Sep 17 00:00:00 2001 From: Mateusz Guzik Date: Wed, 21 Nov 2018 22:16:10 +0000 Subject: [PATCH] proc: update list manipulation comment on process exit Processes stay in the hash until they get reaped. This code does not unlink the child from the parent, so remove the claim that it does. Sponsored by: The FreeBSD Foundation --- sys/kern/kern_exit.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c index 6b601a7c19ab..f88c7cf28f59 100644 --- a/sys/kern/kern_exit.c +++ b/sys/kern/kern_exit.c @@ -429,8 +429,7 @@ exit1(struct thread *td, int rval, int signo) sx_xlock(&proctree_lock); /* - * Remove proc from allproc queue and pidhash chain. - * Place onto zombproc. Unlink from parent's child list. + * Move proc from allproc queue to zombproc. */ sx_xlock(&allproc_lock); LIST_REMOVE(p, p_list);