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
This commit is contained in:
parent
844219f471
commit
928b85384a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=365813
@ -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;
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user