isbackground
if (pp && isbackground(pp, tp)) {
if (pp && isbackground(pp, tp) &&
while (isbackground(p, tp) && !(p->p_flags & P_PPWAIT) &&
while (isbackground(p, tp)) {