Lines Matching refs:on_exit
236 * @on_exit: true if exiting so need to "hang up" the session
247 * The argument on_exit is set to 1 if called when a process is
258 void disassociate_ctty(int on_exit)
267 if (on_exit && tty->driver->type != TTY_DRIVER_TYPE_PTY) {
272 kill_pgrp(tty_pgrp, SIGHUP, on_exit);
273 if (!on_exit)
274 kill_pgrp(tty_pgrp, SIGCONT, on_exit);
280 } else if (on_exit) {
287 kill_pgrp(old_pgrp, SIGHUP, on_exit);
288 kill_pgrp(old_pgrp, SIGCONT, on_exit);