Changeset 75722 in vbox for trunk/src/VBox/Additions/common
- Timestamp:
- Nov 25, 2018 6:41:27 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 126921
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControl.cpp
r69500 r75722 248 248 for (;;) 249 249 { 250 VGSvcVerbose(3, " Waiting for host msg ...\n");250 VGSvcVerbose(3, "GstCtrl: Waiting for host msg ...\n"); 251 251 uint32_t uMsg = 0; 252 252 uint32_t cParms = 0; … … 255 255 { 256 256 #ifdef DEBUG 257 VGSvcVerbose(4, "Message requires % ldparameters, but only 2 supplied -- retrying request (no error!)...\n",257 VGSvcVerbose(4, "Message requires %u parameters, but only 2 supplied -- retrying request (no error!)...\n", 258 258 cParms); 259 259 #endif … … 263 263 { 264 264 /* Note: VERR_GEN_IO_FAILURE seems to be normal if ran into timeout. */ 265 VGSvcError("G etting host message failed with %Rrc\n", rc);265 VGSvcError("GstCtrl: Getting host message failed with %Rrc\n", rc); 266 266 267 267 /* Check for VM session change. */ … … 271 271 && (idNewSession != g_idControlSession)) 272 272 { 273 VGSvcVerbose(1, " The VM session ID changed\n");273 VGSvcVerbose(1, "GstCtrl: The VM session ID changed\n"); 274 274 g_idControlSession = idNewSession; 275 275 … … 288 288 continue; /* Skip waiting. */ 289 289 } 290 else 291 { 292 VGSvcError("Unable to re-connect to HGCM service, rc=%Rrc, bailing out\n", rc); 293 break; 294 } 290 VGSvcError("Unable to re-connect to HGCM service, rc=%Rrc, bailing out\n", rc); 291 break; 295 292 } 296 293 297 if (++cRetrievalFailed > 16) /** @todo Make this configurable? */ 294 if (rc == VERR_INTERRUPTED) 295 RTThreadYield(); /* To be on the safe side... */ 296 else if (++cRetrievalFailed <= 16) /** @todo Make this configurable? */ 297 RTThreadSleep(1000); /* Wait a bit before retrying. */ 298 else 298 299 { 299 300 VGSvcError("Too many failed attempts in a row to get next message, bailing out\n"); 300 301 break; 301 302 } 302 303 RTThreadSleep(1000); /* Wait a bit before retrying. */304 303 } 305 304
Note:
See TracChangeset
for help on using the changeset viewer.