P_CONTROLT
if ((flag & P_CONTROLT) && KI_PROC(k, pgid) == KI_PROC(k, tpgid))
(KI_PROC(KSort[i], flags) & P_CONTROLT ) == 0))
if ((proc.p_flags & P_CONTROLT) && sess.s_ttyp != NULL) {
if ((proc.p_flags & P_CONTROLT) == 0 ||
if ((p->p_flags & P_CONTROLT) && p->p_pgrp->pg_session->s_ttyp) {
if (p1->p_session->s_ttyvp != NULL && (p1->p_flags & P_CONTROLT))
p2->p_flags |= P_CONTROLT;
if (sess && (p->p_flags & P_CONTROLT) != 0 && sess->s_ttyp != NULL) {
if ((p->p_flags & P_CONTROLT) == 0 ||
p->p_flags &= ~P_CONTROLT;
(checkctty == 0 || (p->p_flags & P_CONTROLT)))
if (checkctty == 0 || p->p_flags & P_CONTROLT)
if (p && (p->p_flags & P_CONTROLT) && p->p_session->s_ttyvp) {
if ((p->p_flags & P_CONTROLT) && p->p_session->s_ttyvp) {
p->p_flags |= P_CONTROLT;
p->p_flags &= ~P_CONTROLT;
#define cttyvp(p) (((p)->p_flags & P_CONTROLT) ? \
((p)->p_session == (tp)->t_session && ((p)->p_flags & P_CONTROLT))
if ((p->p_flags & P_CONTROLT) && (tp = sess->s_ttyp))
(kp->kp_flags & P_CONTROLT) == 0)