Lines Matching defs:session

159 // A list of process groups of children of dying session leaders that need to
1018 // remove group from the hash table and from the session
1042 /*! Adds the group the given session and makes it publicly accessible.
1046 ProcessGroup::Publish(ProcessSession* session)
1049 PublishLocked(session);
1053 /*! Adds the group to the given session and makes it publicly accessible.
1057 ProcessGroup::PublishLocked(ProcessSession* session)
1061 fSession = session;
1077 // group's session." (Open Group Base Specs Issue 7)
1323 /*! Returns whether the given team is a session leader.
2877 // create initial session and process groups
2879 ProcessSession* session = new(std::nothrow) ProcessSession(1);
2880 if (session == NULL)
2881 panic("Could not create initial session.\n");
2882 BReference<ProcessSession> sessionReference(session, true);
2889 group->Publish(session);
3014 // lock the team, so its session won't change while we're playing with it
3018 // get and lock the session
3019 ProcessSession* session = team->group->Session();
3020 AutoLocker<ProcessSession> sessionLocker(session);
3022 // set the session's fields
3023 session->controlling_tty = tty;
3024 session->foreground_group = -1;
3031 // lock the team, so its session won't change while we're playing with it
3035 // get and lock the session
3036 ProcessSession* session = team->group->Session();
3037 AutoLocker<ProcessSession> sessionLocker(session);
3039 // get the session's field
3040 return session->controlling_tty;
3047 // lock the team, so its session won't change while we're playing with it
3052 // get and lock the session
3053 ProcessSession* session = team->group->Session();
3054 AutoLocker<ProcessSession> sessionLocker(session);
3057 if (session->controlling_tty != tty)
3060 // check given process group -- must belong to our session
3064 if (group == NULL || group->Session() != session)
3070 if (session->foreground_group != -1
3071 && session->foreground_group != team->group_id
3089 session->foreground_group = processGroupID;
3138 // If we're a controlling process (i.e. a session leader with controlling
3148 ProcessSession* session = team->group->Session();
3150 AutoLocker<ProcessSession> sessionLocker(session);
3152 session->controlling_tty = NULL;
3153 _signalGroup = session->foreground_group;
3173 // If the team was a session leader with controlling terminal,
3983 // get session of the calling process
3996 // get the team's session ID
4101 // same session.
4205 // we must not change our process group ID if we're a session leader
4210 // the calling team and in the same session. (If that's the case it
4211 // isn't a session leader either.)
4234 // The existing target process group belongs to a different session.
4257 // create a new process group and session
4264 ProcessSession* session = new(std::nothrow) ProcessSession(group->id);
4265 if (session == NULL)
4267 BReference<ProcessSession> sessionReference(session, true);
4282 group->Publish(session);
4522 || info.AddInt32("session", teamClone.session_id) != B_OK