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;
 
        /*
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to