Lines Matching refs:tty_pgrp
34 struct pid *pgrp, *tty_pgrp; in __tty_check_change() local
44 tty_pgrp = tty->pgrp; in __tty_check_change()
47 if (tty_pgrp && pgrp != tty_pgrp) { in __tty_check_change()
61 if (!tty_pgrp) in __tty_check_change()
195 struct pid *tty_pgrp = NULL; in tty_signal_session_leader() local
215 tty_pgrp = get_pid(tty->pgrp); in tty_signal_session_leader()
224 if (tty_pgrp) { in tty_signal_session_leader()
226 kill_pgrp(tty_pgrp, SIGHUP, exit_session); in tty_signal_session_leader()
227 put_pid(tty_pgrp); in tty_signal_session_leader()
269 struct pid *tty_pgrp = tty_get_pgrp(tty); in disassociate_ctty() local
270 if (tty_pgrp) { in disassociate_ctty()
271 kill_pgrp(tty_pgrp, SIGHUP, on_exit); in disassociate_ctty()
273 kill_pgrp(tty_pgrp, SIGCONT, on_exit); in disassociate_ctty()
274 put_pid(tty_pgrp); in disassociate_ctty()