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

Function jobc_reaper

freebsd/kern/kern_proc.c:664–677  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

662}
663
664static struct proc *
665jobc_reaper(struct proc *p)
666{
667 struct proc *pp;
668
669 sx_assert(&proctree_lock, SA_LOCKED);
670
671 for (pp = p;;) {
672 pp = pp->p_reaper;
673 if (pp->p_reaper == pp ||
674 (pp->p_treeflag & P_TREE_GRPEXITED) == 0)
675 return (pp);
676 }
677}
678
679static struct proc *
680jobc_parent(struct proc *p, struct proc *p_exiting)

Callers 1

jobc_parentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected