Changeset 18642 in vbox for trunk/src/VBox/Additions/common/VBoxService/VBoxService.cpp
- Timestamp:
- Apr 2, 2009 3:04:40 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxService.cpp
r18640 r18642 107 107 #endif 108 108 " -i | --interval The default interval.\n" 109 #if !defined(RT_OS_WINDOWS)110 109 " -f | --foreground Don't daemonzie the program. For debugging.\n" 111 # else110 #if defined(RT_OS_WINDOWS) 112 111 " -r | --register Installs the service.\n" 113 112 " -u | --unregister Uninstall service.\n" … … 419 418 return VBoxServiceError("VbglR3Init failed with rc=%Rrc.\n", rc); 420 419 421 #if !defined(RT_OS_WINDOWS)422 420 /* 423 421 * Daemonize if requested. … … 426 424 { 427 425 VBoxServiceVerbose(1, "Daemonizing...\n"); 426 #if defined(RT_OS_WINDOWS) 427 /** @todo Replace StartServiceCtrlDispatcher() with 428 VbglR3Daemonize() once this has been ported 429 to Windows later. */ 430 StartServiceCtrlDispatcher (gs_serviceTable); 431 #else 428 432 rc = VbglR3Daemonize(false /* fNoChDir */, false /* fNoClose */); 429 433 if (RT_FAILURE(rc)) 430 434 return VBoxServiceError("daemon failed: %Rrc\n", rc); 431 435 /* in-child */ 432 } 433 #endif 436 #endif 437 } 434 438 435 439 /** @todo Make the main thread responsive to signal so it can shutdown/restart the threads on non-SIGKILL signals. */
Note:
See TracChangeset
for help on using the changeset viewer.