Lines Matching full:signal

8 #include <linux/signal.h>
9 #include <linux/sched/signal.h>
25 * @sig: signal to send
28 * not in the foreground, send a SIGTTOU. If the signal is blocked or
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()
187 * @exit_session: if non-zero, signal all foreground group processes
190 * Optionally, signal all processes in the foreground process group.
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()
261 * ->siglock is taken to protect ->signal/->sighand
263 * ->siglock is taken to protect ->signal/->sighand
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()
319 * current->signal->tty_old_pgrp in a race condition, and in disassociate_ctty()
320 * cause pid memleak. Release current->signal->tty_old_pgrp in disassociate_ctty()
324 put_pid(current->signal->tty_old_pgrp); in disassociate_ctty()
325 current->signal->tty_old_pgrp = NULL; in disassociate_ctty()
328 /* Now clear signal->tty under the lock */ in disassociate_ctty()
363 * Takes ->siglock() when updating signal->tty
372 if (current->signal->leader && in tiocsctty()
380 if (!current->signal->leader || current->signal->tty) { in tiocsctty()
464 * Locking: none. Reference to current->signal->tty is safe.
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()