Lines Matching defs:session
88 * Only callable by the session leader and only if it does not already have
101 * The session and fg pgrp references will be non-NULL if
104 put_pid(tty->session);
107 tty->session = get_pid(task_session(current));
135 tty->session == NULL) {
172 void session_clear_tty(struct pid *session)
175 do_each_pid_task(session, PIDTYPE_SID, p) {
177 } while_each_pid_task(session, PIDTYPE_SID, p);
181 * tty_signal_session_leader - sends SIGHUP to session leader
185 * Send SIGHUP and SIGCONT to the session leader and its process group.
188 * Returns the number of processes in the session with this tty
199 if (tty->session) {
200 do_each_pid_task(tty->session, PIDTYPE_SID, p) {
221 } while_each_pid_task(tty->session, PIDTYPE_SID, p);
236 * @on_exit: true if exiting so need to "hang up" the session
238 * This function is typically called only by the session leader, when
243 * (2) Clears the tty from being controlling the session
245 * session group.
300 put_pid(tty->session);
302 tty->session = NULL;
344 * This ioctl is used to manage job control. It permits a session
345 * leader to set this tty as the controlling tty for the session.
359 if (current->signal->leader && (task_session(current) == tty->session))
363 * The process must be a session leader and
371 if (tty->session) {
374 * tty for another session group!
380 session_clear_tty(tty->session);
474 * Set the process group of the tty to the session passed. Only
475 * permitted where the tty session is our session.
498 (real_tty->session != task_session(current))) {
521 * tiocgsid - get session id
524 * @p: pointer to returned session id
526 * Obtain the session id of the tty. If there is no session
542 if (!real_tty->session)
544 sid = pid_vnr(real_tty->session);