Changeset 29633 in vbox for trunk/src/VBox/Additions/common
- Timestamp:
- May 18, 2010 1:29:03 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxService.cpp
r29594 r29633 363 363 VBoxServiceVerbose(1, "Main service '%s' successfully stopped.\n", g_aServices[iMain].pDesc->pszName); 364 364 else /* Only complain if service returned an error. Otherwise the service is a one-timer. */ 365 VBoxServiceError("Service '%s' stopped unexpected; rc=%Rrc\n", g_aServices[iMain].pDesc->pszName, rc); 365 VBoxServiceError("Service '%s' stopped unexpected; rc=%Rrc\n", g_aServices[iMain].pDesc->pszName, rc); 366 366 g_aServices[iMain].pDesc->pfnTerm(); 367 367 } … … 419 419 420 420 #ifdef RT_OS_WINDOWS 421 /* 422 * As we're now done terminating all service threads, 421 /* 422 * As we're now done terminating all service threads, 423 423 * we have to stop the main thread as well (if defined). Note that the termination 424 424 * function will be called in a later context (when the main thread returns from the worker … … 430 430 431 431 ASMAtomicXchgBool(&g_fShutdown, true); 432 g_aServices[iMain].pDesc->pfnStop(); 433 } 434 #endif 435 432 g_aServices[iMain].pDesc->pfnStop(); 433 } 434 #endif 435 436 436 VBoxServiceVerbose(2, "Stopping services returned: rc=%Rrc\n", rc); 437 437 return rc; … … 454 454 sigaddset(&signalMask, SIGTERM); 455 455 pthread_sigmask(SIG_BLOCK, &signalMask, NULL); 456 sigwait(&signalMask, &iSignal); 457 VBoxServiceVerbose(3, "VBoxServiceWaitSignal: Received signal %d\n", iSignal); 456 457 do 458 iSignal = -1; 459 while ( sigwait(&signalMask, &iSignal) == -1 460 && ( errno == EINTR 461 || errno == ERESTART)); 462 463 VBoxServiceVerbose(3, "VBoxServiceWaitSignal: Received signal %d (errno=%d)\n", iSignal, errno); 458 464 } 459 465 #endif /* !RT_OS_WINDOWS */
Note:
See TracChangeset
for help on using the changeset viewer.