PL_CONTROLT
if ((proc.p_lflag & PL_CONTROLT) && sess.s_ttyp != NULL) {
if ((proc.p_lflag & PL_CONTROLT) == 0 ||
if (!(flags & O_NOCTTY) && SESS_LEADER(p) && !(p->p_lflag & PL_CONTROLT)) {
if (!ret && !noctty && SESS_LEADER(p) && !(p->p_lflag & PL_CONTROLT)) {
if (!ret && !noctty && SESS_LEADER(p) && !(p->p_lflag & PL_CONTROLT)) {
if (!ret && !noctty && SESS_LEADER(p) && !(p->p_lflag & PL_CONTROLT)) {
if ((p->p_lflag & PL_CONTROLT) && p->p_pgrp->pg_session->s_ttyp)
if (p1->p_session->s_ttyvp != NULL && p1->p_lflag & PL_CONTROLT)
p2->p_lflag |= PL_CONTROLT;
if (p1->p_session->s_ttyvp != NULL && p1->p_lflag & PL_CONTROLT)
p2->p_lflag |= PL_CONTROLT;
p->p_lflag &= ~PL_CONTROLT;
PL_CONTROLT, P_CONTROLT,
if ((p->p_lflag & PL_CONTROLT) == 0 ||
} else if ((p->p_lflag & PL_CONTROLT) == 0 ||
if ((p->p_lflag & PL_CONTROLT) &&
if ((p->p_lflag & PL_CONTROLT) && (tp = p->p_session->s_ttyp)) {
if (checkctty == 0 || p->p_lflag & PL_CONTROLT)
if (p->p_lflag & PL_CONTROLT && p->p_session->s_ttyvp) {
if (p->p_lflag & PL_CONTROLT && p->p_session->s_ttyvp) {
if (p->p_lflag & PL_CONTROLT && p->p_session->s_ttyvp) {
p->p_lflag |= PL_CONTROLT;
l->l_proc->p_lflag &= ~PL_CONTROLT;
#define cttyvp(p) ((p)->p_lflag & PL_CONTROLT ? (p)->p_session->s_ttyvp : NULL)
#define cttyvp(p) ((p)->p_lflag & PL_CONTROLT ? (p)->p_session->s_ttyvp : NULL)
if ((p->p_lflag & PL_CONTROLT) && (tp = sess->s_ttyp))
((p)->p_session == (tp)->t_session && (p)->p_lflag & PL_CONTROLT)