Lines Matching refs:leader
1276 * if the ia_mode is off for the session leader,
2179 * leader is interactive. This routine is called from two places:
2182 * ia_parmsset-when the process in question is a session leader.
2185 * (via ia_parmsset) then the p_lock of the session leader is held
2191 proc_t *leader, *fg, *bg;
2199 * see if the session leader is interactive AND
2205 if ((leader = (proc_t *)prfind(sid)) == NULL) {
2208 if (leader->p_stat == SIDL) {
2211 if ((tx = proctot(leader)) == NULL) {
2215 * XXX do all the threads in the leader
2227 mutex_enter(&leader->p_sessp->s_lock);
2229 (leader->p_sessp->s_vp == NULL) ||
2230 (leader->p_sessp->s_vp->v_stream == NULL)) {
2231 mutex_exit(&leader->p_sessp->s_lock);
2234 mutex_exit(&leader->p_sessp->s_lock);
2237 * If we're already holding the leader's p_lock, we should use
2241 if (mutex_owned(&leader->p_lock))