Lines Matching refs:tty_pgrp
36 struct pid *pgrp, *tty_pgrp; in __tty_check_change() local
46 tty_pgrp = tty->ctrl.pgrp; in __tty_check_change()
49 if (tty_pgrp && pgrp != tty_pgrp) { in __tty_check_change()
63 if (!tty_pgrp) in __tty_check_change()
200 struct pid *tty_pgrp = NULL; in tty_signal_session_leader() local
222 tty_pgrp = get_pid(tty->ctrl.pgrp); in tty_signal_session_leader()
232 if (tty_pgrp) { in tty_signal_session_leader()
234 kill_pgrp(tty_pgrp, SIGHUP, exit_session); in tty_signal_session_leader()
235 put_pid(tty_pgrp); in tty_signal_session_leader()
277 struct pid *tty_pgrp = tty_get_pgrp(tty); in disassociate_ctty() local
279 if (tty_pgrp) { in disassociate_ctty()
280 kill_pgrp(tty_pgrp, SIGHUP, on_exit); in disassociate_ctty()
282 kill_pgrp(tty_pgrp, SIGCONT, on_exit); in disassociate_ctty()
283 put_pid(tty_pgrp); in disassociate_ctty()