Changeset 105897 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Aug 29, 2024 7:18:56 AM (6 months ago)
- svn:sync-xref-src-repo-rev:
- 164617
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControl.cpp
r102831 r105897 66 66 #include <iprt/path.h> 67 67 #include <iprt/process.h> 68 #include <iprt/rand.h> 68 69 #include <iprt/semaphore.h> 69 70 #include <iprt/thread.h> … … 246 247 g_fControlSupportsOptimizations = VbglR3GuestCtrlSupportsOptimizations(g_idControlSvcClient); 247 248 if (g_fControlSupportsOptimizations) 248 rc = VbglR3GuestCtrlMakeMeMaster(g_idControlSvcClient); 249 { 250 for (int i = 0; i < 3; i++) 251 { 252 rc = VbglR3GuestCtrlMakeMeMaster(g_idControlSvcClient); 253 if (RT_SUCCESS(rc)) 254 break; 255 RTThreadSleep(RTRandU32Ex(RT_MS_1SEC, RT_MS_5SEC)); 256 VGSvcError("Failed to become guest control master (#%d): %Rrc\n", i, rc); 257 } 258 } 249 259 if (RT_SUCCESS(rc)) 250 260 { … … 272 282 return VINF_SUCCESS; 273 283 } 274 VGSvcError(" Failed to become guest control master: %Rrc\n", rc);284 VGSvcError("Giving up to become guest control master, disconnecting\n"); 275 285 VbglR3GuestCtrlDisconnect(g_idControlSvcClient); 276 286
Note:
See TracChangeset
for help on using the changeset viewer.