| 677 | } |
| 678 | |
| 679 | static struct proc * |
| 680 | jobc_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 | |
| 693 | static int |
| 694 | pgrp_calc_jobc(struct pgrp *pgrp) |
no test coverage detected