Lines Matching refs:sessp
1162 struct session *sessp;
1205 sessp = pgrp->pg_session;
1206 if ((sessp->s_listflags & (S_LIST_TERM | S_LIST_DEAD)) != 0)
1208 if (--sessp->s_count == 0) {
1209 if ((sessp->s_listflags & (S_LIST_TERM | S_LIST_DEAD)) != 0)
1211 sessp->s_listflags |= S_LIST_TERM;
1212 ttyp = SESSION_TP(sessp);
1213 LIST_REMOVE(sessp, s_hash);
1217 if (ttyp->t_session == sessp)
1222 sessp->s_listflags |= S_LIST_DEAD;
1223 if (sessp->s_count != 0)
1227 lck_mtx_destroy(&sessp->s_mlock, proc_mlock_grp);
1229 lck_mtx_destroy(&sessp->s_mlock, proc_lck_grp);
1231 FREE_ZONE(sessp, sizeof(struct session), M_SESSION);