VirtualBox

Changeset 29020 in vbox


Ignore:
Timestamp:
May 4, 2010 1:58:07 PM (15 years ago)
Author:
vboxsync
Message:

VBoxService.cpp: Spaces and minor cleanups.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxService.cpp

    r28967 r29020  
    9595#endif
    9696#ifdef VBOXSERVICE_MANAGEMENT
    97  #ifdef VBOX_WITH_MEMBALLOON
     97# ifdef VBOX_WITH_MEMBALLOON
    9898    { &g_MemBalloon, NIL_RTTHREAD, false, false, false, true },
    99  #endif   
     99# endif
    100100    { &g_VMStatistics, NIL_RTTHREAD, false, false, false, true },
    101101#endif
     
    259259
    260260#ifndef RT_OS_WINDOWS
    261     /* 
     261    /*
    262262     * Block all signals for this thread. Only the main thread will handle signals.
    263263     */
     
    287287}
    288288
     289
    289290/**
    290291 * Starts the service.
     
    298299{
    299300    int rc;
     301
    300302    /*
    301303     * Initialize the services.
     
    313315            }
    314316        }
     317
    315318    /*
    316319     * Start the service(s).
     
    398401    return rc;
    399402}
     403
    400404
    401405#ifndef RT_OS_WINDOWS
     
    417421    VBoxServiceVerbose(3, "VBoxServiceWaitSignal: Received signal %d\n", iSignal);
    418422}
    419 #endif
     423#endif /* !RT_OS_WINDOWS */
    420424
    421425
     
    590594    if (iMain == ~0U)
    591595        return VBoxServiceSyntax("At least one service must be enabled.\n");
     596
    592597#ifndef RT_OS_WINDOWS
    593     /* 
     598    /*
    594599     * POSIX: No main service thread.
    595600     */
     
    598603
    599604    VBoxServiceVerbose(0, "%s r%s started. Verbose level = %d\n",
    600         RTBldCfgVersion(), RTBldCfgRevisionStr(), g_cVerbosity);
     605                       RTBldCfgVersion(), RTBldCfgRevisionStr(), g_cVerbosity);
    601606
    602607    /*
     
    633638#ifdef RT_OS_WINDOWS
    634639    else
    635     {
    636         /* Run the app just like a console one if not daemonized. */
    637 #endif
     640#endif
     641    {
    638642        /*
    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.
    641646         *
    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.
    643649         */
    644650        rc = VBoxServiceStartServices(iMain);
     
    648654#endif
    649655        VBoxServiceStopServices();
    650 #ifdef RT_OS_WINDOWS
    651     }
    652 #endif
     656    }
     657
    653658#ifdef RT_OS_WINDOWS
    654659    /*
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette