Lines Matching refs: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)
81 tty = p->signal->tty;
82 p->signal->tty = NULL;
112 if (current->signal->tty) {
114 current->signal->tty->name);
115 tty_kref_put(current->signal->tty);
117 put_pid(current->signal->tty_old_pgrp);
118 current->signal->tty = tty_kref_get(tty);
119 current->signal->tty_old_pgrp = NULL;
136 if (current->signal->leader &&
137 !current->signal->tty &&
166 tty = tty_kref_get(current->signal->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) {
207 p->signal->tty = NULL;
214 if (!p->signal->leader) {
220 put_pid(p->signal->tty_old_pgrp); /* A noop */
224 p->signal->tty_old_pgrp =
261 * ->siglock is taken to protect ->signal/->sighand
263 * ->siglock is taken to protect ->signal/->sighand
269 if (!current->signal->leader)
292 old_pgrp = current->signal->tty_old_pgrp;
293 current->signal->tty_old_pgrp = NULL;
319 * current->signal->tty_old_pgrp in a race condition, and
320 * cause pid memleak. Release current->signal->tty_old_pgrp
324 put_pid(current->signal->tty_old_pgrp);
325 current->signal->tty_old_pgrp = NULL;
328 /* Now clear signal->tty under the lock */
363 * Takes ->siglock() when updating signal->tty
372 if (current->signal->leader &&
380 if (!current->signal->leader || current->signal->tty) {
464 * Locking: none. Reference to current->signal->tty is safe.
474 if (tty == real_tty && current->signal->tty != real_tty)
510 if (!current->signal->tty ||
511 (current->signal->tty != real_tty) ||
552 if (tty == real_tty && current->signal->tty != real_tty)
579 if (current->signal->tty != tty)