Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Nov 2018 22:16:10 +0000 (UTC)
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r340748 - head/sys/kern
Message-ID:  <201811212216.wALMGAuq013356@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mjg
Date: Wed Nov 21 22:16:10 2018
New Revision: 340748
URL: https://svnweb.freebsd.org/changeset/base/340748

Log:
  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

Modified:
  head/sys/kern/kern_exit.c

Modified: head/sys/kern/kern_exit.c
==============================================================================
--- head/sys/kern/kern_exit.c	Wed Nov 21 22:01:06 2018	(r340747)
+++ head/sys/kern/kern_exit.c	Wed Nov 21 22:16:10 2018	(r340748)
@@ -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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811212216.wALMGAuq013356>