Changeset 29020 in vbox
- Timestamp:
- May 4, 2010 1:58:07 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxService.cpp
r28967 r29020 95 95 #endif 96 96 #ifdef VBOXSERVICE_MANAGEMENT 97 #ifdef VBOX_WITH_MEMBALLOON97 # ifdef VBOX_WITH_MEMBALLOON 98 98 { &g_MemBalloon, NIL_RTTHREAD, false, false, false, true }, 99 #endif 99 # endif 100 100 { &g_VMStatistics, NIL_RTTHREAD, false, false, false, true }, 101 101 #endif … … 259 259 260 260 #ifndef RT_OS_WINDOWS 261 /* 261 /* 262 262 * Block all signals for this thread. Only the main thread will handle signals. 263 263 */ … … 287 287 } 288 288 289 289 290 /** 290 291 * Starts the service. … … 298 299 { 299 300 int rc; 301 300 302 /* 301 303 * Initialize the services. … … 313 315 } 314 316 } 317 315 318 /* 316 319 * Start the service(s). … … 398 401 return rc; 399 402 } 403 400 404 401 405 #ifndef RT_OS_WINDOWS … … 417 421 VBoxServiceVerbose(3, "VBoxServiceWaitSignal: Received signal %d\n", iSignal); 418 422 } 419 #endif 423 #endif /* !RT_OS_WINDOWS */ 420 424 421 425 … … 590 594 if (iMain == ~0U) 591 595 return VBoxServiceSyntax("At least one service must be enabled.\n"); 596 592 597 #ifndef RT_OS_WINDOWS 593 /* 598 /* 594 599 * POSIX: No main service thread. 595 600 */ … … 598 603 599 604 VBoxServiceVerbose(0, "%s r%s started. Verbose level = %d\n", 600 RTBldCfgVersion(), RTBldCfgRevisionStr(), g_cVerbosity);605 RTBldCfgVersion(), RTBldCfgRevisionStr(), g_cVerbosity); 601 606 602 607 /* … … 633 638 #ifdef RT_OS_WINDOWS 634 639 else 635 { 636 /* Run the app just like a console one if not daemonized. */ 637 #endif 640 #endif 641 { 638 642 /* 639 * Windows: Start the services, enter the main threads' run loop and stop them 640 * again when it returns. 643 * Windows: We're running the service as a console application now. Start the 644 * services, enter the main thread's run loop and stop them again 645 * when it returns. 641 646 * 642 * POSIX: Start all services and return immediately. 647 * POSIX: This is used for both daemons and console runs. Start all services 648 * and return immediately. 643 649 */ 644 650 rc = VBoxServiceStartServices(iMain); … … 648 654 #endif 649 655 VBoxServiceStopServices(); 650 #ifdef RT_OS_WINDOWS 651 } 652 #endif 656 } 657 653 658 #ifdef RT_OS_WINDOWS 654 659 /*
Note:
See TracChangeset
for help on using the changeset viewer.