Lines Matching refs:current

18 	return (sigismember(&current->blocked, sig) ||
19 current->sighand->action[sig-1].sa.sa_handler == SIG_IGN);
39 if (current->signal->tty != tty)
43 pgrp = task_pgrp(current);
109 tty->ctrl.pgrp = get_pid(task_pgrp(current));
110 tty->ctrl.session = get_pid(task_session(current));
112 if (current->signal->tty) {
113 tty_debug(tty, "current tty %s not NULL!!\n",
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;
124 spin_lock_irq(&current->sighand->siglock);
126 spin_unlock_irq(&current->sighand->siglock);
135 spin_lock_irq(&current->sighand->siglock);
136 if (current->signal->leader &&
137 !current->signal->tty &&
156 spin_unlock_irq(&current->sighand->siglock);
165 spin_lock_irqsave(&current->sighand->siglock, flags);
166 tty = tty_kref_get(current->signal->tty);
167 spin_unlock_irqrestore(&current->sighand->siglock, flags);
269 if (!current->signal->leader)
291 spin_lock_irq(&current->sighand->siglock);
292 old_pgrp = current->signal->tty_old_pgrp;
293 current->signal->tty_old_pgrp = NULL;
294 spin_unlock_irq(&current->sighand->siglock);
319 * current->signal->tty_old_pgrp in a race condition, and
320 * cause pid memleak. Release current->signal->tty_old_pgrp
323 spin_lock_irq(&current->sighand->siglock);
324 put_pid(current->signal->tty_old_pgrp);
325 current->signal->tty_old_pgrp = NULL;
326 spin_unlock_irq(&current->sighand->siglock);
330 session_clear_tty(task_session(current));
336 * no_tty - Ensure the current process does not have a controlling tty
345 struct task_struct *tsk = current;
372 if (current->signal->leader &&
373 task_session(current) == tty->ctrl.session)
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) ||
512 (real_tty->ctrl.session != task_session(current))) {
522 if (session_of_pgrp(pgrp) != task_session(current))
552 if (tty == real_tty && current->signal->tty != real_tty)
579 if (current->signal->tty != tty)