Date: Thu, 17 Sep 2020 00:07:16 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r365826 - head/sys/kern Message-ID: <202009170007.08H07GvL026064@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Thu Sep 17 00:07:15 2020 New Revision: 365826 URL: https://svnweb.freebsd.org/changeset/base/365826 Log: 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 Modified: head/sys/kern/kern_proc.c Modified: head/sys/kern/kern_proc.c ============================================================================== --- head/sys/kern/kern_proc.c Thu Sep 17 00:03:19 2020 (r365825) +++ head/sys/kern/kern_proc.c Thu Sep 17 00:07:15 2020 (r365826) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202009170007.08H07GvL026064>