Lines Matching refs:pgrp
630 if (tty->pgrp <= 0) { in tty_check_change()
634 if (current->pgrp == tty->pgrp) in tty_check_change()
638 if (is_orphaned_pgrp(current->pgrp)) in tty_check_change()
640 (void) kill_pg(current->pgrp,SIGTTOU,1); in tty_check_change()
828 if (tty->pgrp > 0) in do_tty_hangup()
829 p->tty_old_pgrp = tty->pgrp; in do_tty_hangup()
838 tty->pgrp = -1; in do_tty_hangup()
913 tty_pgrp = tty->pgrp; in disassociate_ctty()
931 tty->pgrp = -1; in disassociate_ctty()
995 (tty->pgrp > 0) && in tty_read()
997 (tty->pgrp != current->pgrp)) in tty_read()
998 if (is_ignored(SIGTTIN) || is_orphaned_pgrp(current->pgrp)) in tty_read()
1001 (void) kill_pg(current->pgrp, SIGTTIN, 1); in tty_read()
1120 if (!is_console && L_TOSTOP(tty) && (tty->pgrp > 0) && in tty_write()
1121 (current->tty == tty) && (tty->pgrp != current->pgrp)) { in tty_write()
1122 if (is_orphaned_pgrp(current->pgrp)) in tty_write()
1125 (void) kill_pg(current->pgrp, SIGTTOU, 1); in tty_write()
1808 tty->pgrp = current->pgrp; in tty_open()
1869 filp->f_owner.pid = (-tty->pgrp) ? : current->pid; in tty_fasync()
1911 if (tty->pgrp > 0) in tiocswinsz()
1912 kill_pg(tty->pgrp, SIGWINCH, 1); in tiocswinsz()
1913 if ((real_tty->pgrp != tty->pgrp) && (real_tty->pgrp > 0)) in tiocswinsz()
1914 kill_pg(real_tty->pgrp, SIGWINCH, 1); in tiocswinsz()
1996 tty->pgrp = current->pgrp; in tiocsctty()
2008 return put_user(real_tty->pgrp, arg); in tiocgpgrp()
2013 pid_t pgrp; in tiocspgrp() local
2024 if (get_user(pgrp, (pid_t *) arg)) in tiocspgrp()
2026 if (pgrp < 0) in tiocspgrp()
2028 if (session_of_pgrp(pgrp) != current->session) in tiocspgrp()
2030 real_tty->pgrp = pgrp; in tiocspgrp()
2454 tty->pgrp = -1; in initialize_tty_struct()