Changeset 23029 in vbox
- Timestamp:
- Sep 15, 2009 11:52:38 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxService.cpp
r22744 r23029 402 402 */ 403 403 bool fDaemonize = true; 404 bool fDaemon zied = false;404 bool fDaemonized = false; 405 405 for (int i = 1; i < argc; i++) 406 406 { … … 433 433 else if (MATCHES("daemonized")) 434 434 { 435 fDaemon zied = true;435 fDaemonized = true; 436 436 continue; 437 437 } … … 540 540 * Daemonize if requested. 541 541 */ 542 if (fDaemonize && !fDaemon zied)542 if (fDaemonize && !fDaemonized) 543 543 { 544 544 #ifdef RT_OS_WINDOWS … … 557 557 VBoxServiceVerbose(2, "Starting service dispatcher ...\n"); 558 558 if (!StartServiceCtrlDispatcher(&g_aServiceTable[0])) 559 return VBoxServiceError("StartServiceCtrlDispatcher: %u\n", GetLastError()); 559 return VBoxServiceError("StartServiceCtrlDispatcher: %u. Please start %s with option -f (foreground)!", 560 GetLastError(), g_pszProgName); 560 561 /* Service now lives in the control dispatcher registered above. */ 561 562 #else
Note:
See TracChangeset
for help on using the changeset viewer.