VirtualBox

Changeset 47698 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Aug 13, 2013 2:50:50 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
87926
Message:

Main/GuestCtrl: Mark guest session 0 as the root guest control process.

Location:
trunk/src/VBox/Main
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r47651 r47698  
    1014610146      the session object via <link to="IGuest::createSession"/>.
    1014710147
    10148       There can be a maximum of 32 sessions at once per VM. Each session keeps
    10149       track of its started guest processes, opened guest files or guest directories.
     10148      There can be a maximum of 32 sessions at once per VM, whereas session 0
     10149      is reserved for the root session. This root session is controlling all
     10150      other guest sessions and also is responsible for actions which require
     10151      system level privileges. Each guest session keeps track of its started
     10152      guest processes, opened guest files or guest directories.
    1015010153      To work on guest files or directories a guest session offers methods to open
    1015110154      or create such objects (see <link to="IGuestSession::fileOpen"/> or
  • trunk/src/VBox/Main/src-client/GuestCtrlImpl.cpp

    r47627 r47698  
    380380    {
    381381        /* Create a new session ID and assign it. */
    382         uint32_t uNewSessionID = 0;
     382        uint32_t uNewSessionID = VBOX_GUESTCTRL_SESSION_ID_BASE;
    383383        uint32_t uTries = 0;
    384384
     
    393393            uNewSessionID++;
    394394            if (uNewSessionID >= VBOX_GUESTCTRL_MAX_SESSIONS)
    395                 uNewSessionID = 0;
     395                uNewSessionID = VBOX_GUESTCTRL_SESSION_ID_BASE;
    396396
    397397            if (++uTries == VBOX_GUESTCTRL_MAX_SESSIONS)
  • trunk/src/VBox/Main/src-client/GuestSessionImpl.cpp

    r47627 r47698  
    656656
    657657    if (mData.mStatus != GuestSessionStatus_Started)
     658    {
     659        LogFlowThisFunc(("Session ID=%RU32 not started (anymore), status now is: %ld\n",
     660                         mData.mSession.mID, mData.mStatus));
    658661        return VINF_SUCCESS;
     662    }
    659663
    660664    int vrc;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette