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