Lines Matching refs:signal
39 if (current->signal->tty != tty) in __tty_check_change()
81 tty = p->signal->tty; in proc_clear_tty()
82 p->signal->tty = NULL; in proc_clear_tty()
112 if (current->signal->tty) { in __proc_set_tty()
114 current->signal->tty->name); in __proc_set_tty()
115 tty_kref_put(current->signal->tty); in __proc_set_tty()
117 put_pid(current->signal->tty_old_pgrp); in __proc_set_tty()
118 current->signal->tty = tty_kref_get(tty); in __proc_set_tty()
119 current->signal->tty_old_pgrp = NULL; in __proc_set_tty()
136 if (current->signal->leader && in tty_open_proc_set_tty()
137 !current->signal->tty && in tty_open_proc_set_tty()
166 tty = tty_kref_get(current->signal->tty); in get_current_tty()
206 if (p->signal->tty == tty) { in tty_signal_session_leader()
207 p->signal->tty = NULL; in tty_signal_session_leader()
214 if (!p->signal->leader) { in tty_signal_session_leader()
220 put_pid(p->signal->tty_old_pgrp); /* A noop */ in tty_signal_session_leader()
224 p->signal->tty_old_pgrp = in tty_signal_session_leader()
269 if (!current->signal->leader) in disassociate_ctty()
292 old_pgrp = current->signal->tty_old_pgrp; in disassociate_ctty()
293 current->signal->tty_old_pgrp = NULL; in disassociate_ctty()
324 put_pid(current->signal->tty_old_pgrp); in disassociate_ctty()
325 current->signal->tty_old_pgrp = NULL; in disassociate_ctty()
372 if (current->signal->leader && in tiocsctty()
380 if (!current->signal->leader || current->signal->tty) { in tiocsctty()
474 if (tty == real_tty && current->signal->tty != real_tty) in tiocgpgrp()
510 if (!current->signal->tty || in tiocspgrp()
511 (current->signal->tty != real_tty) || in tiocspgrp()
552 if (tty == real_tty && current->signal->tty != real_tty) in tiocgsid()
579 if (current->signal->tty != tty) in tty_jobctrl_ioctl()