Lines Matching defs:leader
1277 * if the ia_mode is off for the session leader,
2180 * leader is interactive. This routine is called from two places:
2183 * ia_parmsset-when the process in question is a session leader.
2186 * (via ia_parmsset) then the p_lock of the session leader is held
2192 proc_t *leader, *fg, *bg;
2200 * see if the session leader is interactive AND
2206 if ((leader = (proc_t *)prfind(sid)) == NULL) {
2209 if (leader->p_stat == SIDL) {
2212 if ((tx = proctot(leader)) == NULL) {
2216 * XXX do all the threads in the leader
2228 mutex_enter(&leader->p_sessp->s_lock);
2230 (leader->p_sessp->s_vp == NULL) ||
2231 (leader->p_sessp->s_vp->v_stream == NULL)) {
2232 mutex_exit(&leader->p_sessp->s_lock);
2235 mutex_exit(&leader->p_sessp->s_lock);
2238 * If we're already holding the leader's p_lock, we should use
2242 if (mutex_owned(&leader->p_lock))