Lines Matching defs:targp
397 register struct proc *targp; /* target process */
411 if ((targp = pfind(uap->pid)) == NULL) {
415 if (!inferior(targp)) {
416 PROC_UNLOCK(targp);
420 if ((error = p_cansee(td, targp))) {
421 PROC_UNLOCK(targp);
424 if (targp->p_pgrp == NULL ||
425 targp->p_session != curp->p_session) {
426 PROC_UNLOCK(targp);
430 if (targp->p_flag & P_EXEC) {
431 PROC_UNLOCK(targp);
435 PROC_UNLOCK(targp);
437 targp = curp;
438 if (SESS_LEADER(targp)) {
443 uap->pgid = targp->p_pid;
445 if (uap->pgid == targp->p_pid) {
446 error = enterpgrp(targp, uap->pgid, newpgrp,
453 if (pgrp == targp->p_pgrp) {
457 if (pgrp->pg_id != targp->p_pid &&
464 error = enterthispgrp(targp, pgrp);