MCPcopy Create free account
hub / github.com/F-Stack/f-stack / jobc_parent

Function jobc_parent

freebsd/kern/kern_proc.c:679–691  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

677}
678
679static struct proc *
680jobc_parent(struct proc *p, struct proc *p_exiting)
681{
682 struct proc *pp;
683
684 sx_assert(&proctree_lock, SA_LOCKED);
685
686 pp = proc_realparent(p);
687 if (pp->p_pptr == NULL || pp == p_exiting ||
688 (pp->p_treeflag & P_TREE_GRPEXITED) == 0)
689 return (pp);
690 return (jobc_reaper(pp));
691}
692
693static int
694pgrp_calc_jobc(struct pgrp *pgrp)

Callers 3

pgrp_calc_jobcFunction · 0.85
doenterpgrpFunction · 0.85
fixjobc_killFunction · 0.85

Calls 2

proc_realparentFunction · 0.85
jobc_reaperFunction · 0.85

Tested by

no test coverage detected