Lines Matching refs:targp
588 proc_t targp = PROC_NULL; /* target process */
599 if ((targp = proc_find(uap->pid)) == 0 || !inferior(targp)) {
600 if (targp != PROC_NULL)
606 targp_sessp = proc_session(targp);
611 if (targp->p_flag & P_EXEC) {
616 targp = curp;
617 targp_sessp = proc_session(targp);
620 if (SESS_LEADER(targp, targp_sessp)) {
634 uap->pgid = targp->p_pid;
635 else if (uap->pgid != targp->p_pid) {
647 error = enterpgrp(targp, uap->pgid, 0);
654 proc_rele(targp);