svn commit: r365813 - head/sys/kern
Konstantin Belousov
kib at FreeBSD.org
Wed Sep 16 21:40:33 UTC 2020
Author: kib
Date: Wed Sep 16 21:40:32 2020
New Revision: 365813
URL: https://svnweb.freebsd.org/changeset/base/365813
Log:
Assert that P_TREE_GRPEXITED is set only once.
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D26416
Modified:
head/sys/kern/kern_proc.c
Modified: head/sys/kern/kern_proc.c
==============================================================================
--- head/sys/kern/kern_proc.c Wed Sep 16 21:38:24 2020 (r365812)
+++ head/sys/kern/kern_proc.c Wed Sep 16 21:40:32 2020 (r365813)
@@ -851,6 +851,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