Lines Matching defs:session

91  * Only callable by the session leader and only if it does not already have
104 * The session and fg pgrp references will be non-NULL if
107 put_pid(tty->ctrl.session);
110 tty->ctrl.session = get_pid(task_session(current));
138 tty->ctrl.session == NULL) {
175 void session_clear_tty(struct pid *session)
179 do_each_pid_task(session, PIDTYPE_SID, p) {
181 } while_each_pid_task(session, PIDTYPE_SID, p);
185 * tty_signal_session_leader - sends SIGHUP to session leader
189 * Send SIGHUP and SIGCONT to the session leader and its process group.
192 * Returns the number of processes in the session with this tty
203 if (tty->ctrl.session) {
204 do_each_pid_task(tty->ctrl.session, PIDTYPE_SID, p) {
228 } while_each_pid_task(tty->ctrl.session, PIDTYPE_SID, p);
243 * @on_exit: true if exiting so need to "hang up" the session
245 * This function is typically called only by the session leader, when
250 * (2) Clears the tty from being controlling the session
252 * session group.
309 put_pid(tty->ctrl.session);
311 tty->ctrl.session = NULL;
357 * This ioctl is used to manage job control. It permits a session
358 * leader to set this tty as the controlling tty for the session.
373 task_session(current) == tty->ctrl.session)
377 * The process must be a session leader and
385 if (tty->ctrl.session) {
388 * tty for another session group!
394 session_clear_tty(tty->ctrl.session);
488 * Set the process group of the tty to the session passed. Only
489 * permitted where the tty session is our session.
512 (real_tty->ctrl.session != task_session(current))) {
535 * tiocgsid - get session id
538 * @p: pointer to returned session id
540 * Obtain the session id of the tty. If there is no session
556 if (!real_tty->ctrl.session)
558 sid = pid_vnr(real_tty->ctrl.session);