VirtualBox

Changeset 18642 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Apr 2, 2009 3:04:40 PM (16 years ago)
Author:
vboxsync
Message:

Guest Additions/common: Update.

Location:
trunk/src/VBox/Additions/common/VBoxService
Files:
2 edited

Legend:

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

    r18640 r18642  
    107107#endif
    108108             "    -i | --interval          The default interval.\n"
    109 #if !defined(RT_OS_WINDOWS)
    110109             "    -f | --foreground        Don't daemonzie the program. For debugging.\n"
    111 #else
     110#if defined(RT_OS_WINDOWS)
    112111             "    -r | --register          Installs the service.\n"
    113112             "    -u | --unregister        Uninstall service.\n"
     
    419418        return VBoxServiceError("VbglR3Init failed with rc=%Rrc.\n", rc);
    420419
    421 #if !defined(RT_OS_WINDOWS)
    422420    /*
    423421     * Daemonize if requested.
     
    426424    {
    427425        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
    428432        rc = VbglR3Daemonize(false /* fNoChDir */, false /* fNoClose */);
    429433        if (RT_FAILURE(rc))
    430434            return VBoxServiceError("daemon failed: %Rrc\n", rc);
    431435        /* in-child */
    432     }
    433 #endif
     436#endif
     437    }
    434438
    435439/** @todo Make the main thread responsive to signal so it can shutdown/restart the threads on non-SIGKILL signals. */
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceInternal.h

    r18640 r18642  
    125125    extern DWORD                 g_vboxServiceStatusCode;
    126126    extern SERVICE_STATUS_HANDLE g_vboxServiceStatusHandle;
     127    extern SERVICE_TABLE_ENTRY const gs_serviceTable[];
    127128#endif
    128129
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