svn commit: r366081 - stable/12/sys/kern

Konstantin Belousov kib at FreeBSD.org
Wed Sep 23 17:20:04 UTC 2020


Author: kib
Date: Wed Sep 23 17:20:04 2020
New Revision: 366081
URL: https://svnweb.freebsd.org/changeset/base/366081

Log:
  MFC r365813:
  Assert that P_TREE_GRPEXITED is set only once.

Modified:
  stable/12/sys/kern/kern_proc.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/kern/kern_proc.c
==============================================================================
--- stable/12/sys/kern/kern_proc.c	Wed Sep 23 17:12:59 2020	(r366080)
+++ stable/12/sys/kern/kern_proc.c	Wed Sep 23 17:20:04 2020	(r366081)
@@ -762,6 +762,7 @@ fixjobc_kill(struct proc *p)
 	 * It is marked by the flag because p is only physically
 	 * removed from its process group on wait(2).
 	 */
+	MPASS((p->p_treeflag & P_TREE_GRPEXITED) == 0);
 	p->p_treeflag |= P_TREE_GRPEXITED;
 
 	/*


More information about the svn-src-all mailing list