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:
parent
134499c0d5
commit
ac83c77815
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user