Lines Matching refs:on_exit
243 * @on_exit: true if exiting so need to "hang up" the session
254 * The argument on_exit is set to 1 if called when a process is
265 void disassociate_ctty(int on_exit)
274 if (on_exit && tty->driver->type != TTY_DRIVER_TYPE_PTY) {
280 kill_pgrp(tty_pgrp, SIGHUP, on_exit);
281 if (!on_exit)
282 kill_pgrp(tty_pgrp, SIGCONT, on_exit);
288 } else if (on_exit) {
296 kill_pgrp(old_pgrp, SIGHUP, on_exit);
297 kill_pgrp(old_pgrp, SIGCONT, on_exit);