Put calls to check_pgrp_jobc() in fixjobc_kill() under INVARIANTS.

Reported by:	Michael Butler <imb@protected-networks.net>
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
This commit is contained in:
Konstantin Belousov 2020-09-17 00:07:15 +00:00
parent 182cfe6ff4
commit dd90d96342

View File

@ -904,7 +904,9 @@ fixjobc_kill(struct proc *p)
pgrp = p->p_pgrp;
PGRP_LOCK_ASSERT(pgrp, MA_NOTOWNED);
SESS_LOCK_ASSERT(pgrp->pg_session, MA_NOTOWNED);
#ifdef INVARIANTS
check_pgrp_jobc(pgrp);
#endif
/*
* p no longer affects process group orphanage for children.
@ -941,7 +943,9 @@ fixjobc_kill(struct proc *p)
LIST_FOREACH(q, &p->p_orphans, p_orphan)
fixjobc_kill_q(p, q, false);
#ifdef INVARIANTS
check_pgrp_jobc(pgrp);
#endif
}
void