Lines Matching refs:tty_pgrp
396 struct pid *pgrp, *tty_pgrp; in __tty_check_change() local
406 tty_pgrp = tty->pgrp; in __tty_check_change()
409 if (tty_pgrp && pgrp != tty->pgrp) { in __tty_check_change()
423 if (!tty_pgrp) { in __tty_check_change()
619 struct pid *tty_pgrp = NULL; in tty_signal_session_leader() local
639 tty_pgrp = get_pid(tty->pgrp); in tty_signal_session_leader()
648 if (tty_pgrp) { in tty_signal_session_leader()
650 kill_pgrp(tty_pgrp, SIGHUP, exit_session); in tty_signal_session_leader()
651 put_pid(tty_pgrp); in tty_signal_session_leader()
894 struct pid *tty_pgrp = tty_get_pgrp(tty); in disassociate_ctty() local
895 if (tty_pgrp) { in disassociate_ctty()
896 kill_pgrp(tty_pgrp, SIGHUP, on_exit); in disassociate_ctty()
898 kill_pgrp(tty_pgrp, SIGCONT, on_exit); in disassociate_ctty()
899 put_pid(tty_pgrp); in disassociate_ctty()