MCPcopy Create free account
hub / github.com/F-Stack/f-stack / tty_rel_sess

Function tty_rel_sess

freebsd/kern/tty.c:1183–1196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1181}
1182
1183void
1184tty_rel_sess(struct tty *tp, struct session *sess)
1185{
1186
1187 MPASS(tp->t_sessioncnt > 0);
1188
1189 /* Current session has left. */
1190 if (tp->t_session == sess) {
1191 tp->t_session = NULL;
1192 MPASS(tp->t_pgrp == NULL);
1193 }
1194 tp->t_sessioncnt--;
1195 tty_rel_free(tp);
1196}
1197
1198void
1199tty_rel_gone(struct tty *tp)

Callers 1

sess_releaseFunction · 0.85

Calls 1

tty_rel_freeFunction · 0.85

Tested by

no test coverage detected