VirtualBox

Changeset 102679 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Dec 21, 2023 4:13:59 PM (14 months ago)
Author:
vboxsync
Message:

Guest Control/VBoxManage: Print the number of (still) registered guest sessions in very high verbose modes (> 4) when terminating guest control commands. Nice for quickly checking stuff.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp

    r99784 r102679  
    901901                RTPrintf(GuestCtrl::tr("Closing guest session ...\n"));
    902902
    903             CHECK_ERROR(pCtx->pGuestSession, Close());
     903            if (pCtx->pGuestSession.isNotNull())
     904                CHECK_ERROR(pCtx->pGuestSession, Close());
     905
     906            if (pCtx->cVerbose > 4)
     907            {
     908                SafeIfaceArray <IGuestSession> collSessions;
     909                CHECK_ERROR(pCtx->pGuest, COMGETTER(Sessions)(ComSafeArrayAsOutParam(collSessions)));
     910                RTPrintf(GuestCtrl::tr("Now %zu guest sessions registered\n"), collSessions.size());
     911            }
    904912        }
    905913        else if (   pCtx->fDetachGuestSession
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