Lines Matching refs:current

18 	return (sigismember(&current->blocked, sig) ||
19 current->sighand->action[sig-1].sa.sa_handler == SIG_IGN);
38 if (current->signal->tty != tty)
42 pgrp = task_pgrp(current);
106 tty->pgrp = get_pid(task_pgrp(current));
107 tty->session = get_pid(task_session(current));
109 if (current->signal->tty) {
110 tty_debug(tty, "current tty %s not NULL!!\n",
111 current->signal->tty->name);
112 tty_kref_put(current->signal->tty);
114 put_pid(current->signal->tty_old_pgrp);
115 current->signal->tty = tty_kref_get(tty);
116 current->signal->tty_old_pgrp = NULL;
121 spin_lock_irq(&current->sighand->siglock);
123 spin_unlock_irq(&current->sighand->siglock);
132 spin_lock_irq(&current->sighand->siglock);
133 if (current->signal->leader &&
134 !current->signal->tty &&
153 spin_unlock_irq(&current->sighand->siglock);
162 spin_lock_irqsave(&current->sighand->siglock, flags);
163 tty = tty_kref_get(current->signal->tty);
164 spin_unlock_irqrestore(&current->sighand->siglock, flags);
262 if (!current->signal->leader)
282 spin_lock_irq(&current->sighand->siglock);
283 old_pgrp = current->signal->tty_old_pgrp;
284 current->signal->tty_old_pgrp = NULL;
285 spin_unlock_irq(&current->sighand->siglock);
310 * current->signal->tty_old_pgrp in a race condition, and
311 * cause pid memleak. Release current->signal->tty_old_pgrp
314 spin_lock_irq(&current->sighand->siglock);
315 put_pid(current->signal->tty_old_pgrp);
316 current->signal->tty_old_pgrp = NULL;
317 spin_unlock_irq(&current->sighand->siglock);
321 session_clear_tty(task_session(current));
327 * no_tty - Ensure the current process does not have a controlling tty
334 struct task_struct *tsk = current;
359 if (current->signal->leader && (task_session(current) == tty->session))
366 if (!current->signal->leader || current->signal->tty) {
450 * Locking: none. Reference to current->signal->tty is safe.
460 if (tty == real_tty && current->signal->tty != real_tty)
496 if (!current->signal->tty ||
497 (current->signal->tty != real_tty) ||
498 (real_tty->session != task_session(current))) {
508 if (session_of_pgrp(pgrp) != task_session(current))
538 if (tty == real_tty && current->signal->tty != real_tty)
565 if (current->signal->tty != tty)