| 1168 | } |
| 1169 | |
| 1170 | void |
| 1171 | tty_rel_pgrp(struct tty *tp, struct pgrp *pg) |
| 1172 | { |
| 1173 | |
| 1174 | MPASS(tp->t_sessioncnt > 0); |
| 1175 | tty_assert_locked(tp); |
| 1176 | |
| 1177 | if (tp->t_pgrp == pg) |
| 1178 | tp->t_pgrp = NULL; |
| 1179 | |
| 1180 | tty_unlock(tp); |
| 1181 | } |
| 1182 | |
| 1183 | void |
| 1184 | tty_rel_sess(struct tty *tp, struct session *sess) |