* If true, any child of q which belongs to group pgrp, qualifies the * process group pgrp as not orphaned. */
| 653 | * process group pgrp as not orphaned. |
| 654 | */ |
| 655 | static bool |
| 656 | isjobproc(struct proc *q, struct pgrp *pgrp) |
| 657 | { |
| 658 | sx_assert(&proctree_lock, SX_LOCKED); |
| 659 | |
| 660 | return (q->p_pgrp != pgrp && |
| 661 | q->p_pgrp->pg_session == pgrp->pg_session); |
| 662 | } |
| 663 | |
| 664 | static struct proc * |
| 665 | jobc_reaper(struct proc *p) |
no outgoing calls
no test coverage detected