Changeset 47560 in vbox
- Timestamp:
- Aug 6, 2013 2:53:46 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp
r47557 r47560 838 838 Bstr(strPassword).raw(), 839 839 Bstr(strDomain).raw(), 840 Bstr("VBoxManage Guest Control Exec").raw(),840 Bstr("VBoxManage Guest Control").raw(), 841 841 pGuestSession.asOutParam()); 842 842 if (FAILED(rc)) … … 3050 3050 do 3051 3051 { 3052 uint32_t uProcsTerminated = 0; 3052 3053 bool fSessionFound = false; 3053 3054 … … 3056 3057 size_t cSessions = collSessions.size(); 3057 3058 3059 uint32_t uSessionsHandled = 0; 3058 3060 for (size_t i = 0; i < cSessions; i++) 3059 3061 { … … 3066 3068 CHECK_ERROR_BREAK(pSession, COMGETTER(Name)(strName.asOutParam())); 3067 3069 Utf8Str strNameUtf8(strName); /* Session name */ 3068 3069 3070 if (strSessionName.isEmpty()) /* Search by ID. Slow lookup. */ 3070 3071 { … … 3079 3080 if (fSessionFound) 3080 3081 { 3081 Assert(!pSession.isNull()); 3082 AssertStmt(!pSession.isNull(), break); 3083 uSessionsHandled++; 3082 3084 3083 3085 SafeIfaceArray <IGuestProcess> collProcs; … … 3107 3109 uPID, uID); 3108 3110 CHECK_ERROR_BREAK(pProcess, Terminate()); 3111 uProcsTerminated++; 3112 } 3113 else 3114 { 3115 if (ulSessionID != UINT32_MAX) 3116 RTPrintf("No matching process(es) for session %RU32 found\n", 3117 ulSessionID); 3109 3118 } 3110 3119 … … 3116 3125 } 3117 3126 3118 if (!fSessionFound) 3119 { 3120 RTPrintf("No guest session(s) found\n"); 3121 rc = E_ABORT; /* To set exit code accordingly. */ 3122 } 3127 if (!uSessionsHandled) 3128 RTPrintf("No matching session(s) found\n"); 3129 3130 if (uProcsTerminated) 3131 RTPrintf("%RU32 %s terminated\n", 3132 uProcsTerminated, uProcsTerminated == 1 ? "process" : "processes"); 3123 3133 3124 3134 } while (0);
Note:
See TracChangeset
for help on using the changeset viewer.