Lines Matching full:current
17 return (sigismember(¤t->blocked, sig) || in is_ignored()
18 current->sighand->action[sig-1].sa.sa_handler == SIG_IGN); in is_ignored()
37 if (current->signal->tty != tty) in __tty_check_change()
41 pgrp = task_pgrp(current); in __tty_check_change()
105 tty->pgrp = get_pid(task_pgrp(current)); in __proc_set_tty()
106 tty->session = get_pid(task_session(current)); in __proc_set_tty()
108 if (current->signal->tty) { in __proc_set_tty()
109 tty_debug(tty, "current tty %s not NULL!!\n", in __proc_set_tty()
110 current->signal->tty->name); in __proc_set_tty()
111 tty_kref_put(current->signal->tty); in __proc_set_tty()
113 put_pid(current->signal->tty_old_pgrp); in __proc_set_tty()
114 current->signal->tty = tty_kref_get(tty); in __proc_set_tty()
115 current->signal->tty_old_pgrp = NULL; in __proc_set_tty()
120 spin_lock_irq(¤t->sighand->siglock); in proc_set_tty()
122 spin_unlock_irq(¤t->sighand->siglock); in proc_set_tty()
131 spin_lock_irq(¤t->sighand->siglock); in tty_open_proc_set_tty()
132 if (current->signal->leader && in tty_open_proc_set_tty()
133 !current->signal->tty && in tty_open_proc_set_tty()
152 spin_unlock_irq(¤t->sighand->siglock); in tty_open_proc_set_tty()
161 spin_lock_irqsave(¤t->sighand->siglock, flags); in get_current_tty()
162 tty = tty_kref_get(current->signal->tty); in get_current_tty()
163 spin_unlock_irqrestore(¤t->sighand->siglock, flags); in get_current_tty()
261 if (!current->signal->leader) in disassociate_ctty()
281 spin_lock_irq(¤t->sighand->siglock); in disassociate_ctty()
282 old_pgrp = current->signal->tty_old_pgrp; in disassociate_ctty()
283 current->signal->tty_old_pgrp = NULL; in disassociate_ctty()
284 spin_unlock_irq(¤t->sighand->siglock); in disassociate_ctty()
293 spin_lock_irq(¤t->sighand->siglock); in disassociate_ctty()
294 put_pid(current->signal->tty_old_pgrp); in disassociate_ctty()
295 current->signal->tty_old_pgrp = NULL; in disassociate_ctty()
296 tty = tty_kref_get(current->signal->tty); in disassociate_ctty()
297 spin_unlock_irq(¤t->sighand->siglock); in disassociate_ctty()
315 session_clear_tty(task_session(current)); in disassociate_ctty()
321 * no_tty - Ensure the current process does not have a controlling tty
328 struct task_struct *tsk = current; in no_tty()
353 if (current->signal->leader && (task_session(current) == tty->session)) in tiocsctty()
360 if (!current->signal->leader || current->signal->tty) { in tiocsctty()
444 * Locking: none. Reference to current->signal->tty is safe.
454 if (tty == real_tty && current->signal->tty != real_tty) in tiocgpgrp()
490 if (!current->signal->tty || in tiocspgrp()
491 (current->signal->tty != real_tty) || in tiocspgrp()
492 (real_tty->session != task_session(current))) { in tiocspgrp()
502 if (session_of_pgrp(pgrp) != task_session(current)) in tiocspgrp()
532 if (tty == real_tty && current->signal->tty != real_tty) in tiocgsid()
559 if (current->signal->tty != tty) in tty_jobctrl_ioctl()