VirtualBox

Changeset 71719 in vbox


Ignore:
Timestamp:
Apr 6, 2018 6:48:26 PM (7 years ago)
Author:
vboxsync
Message:

RpcChannelHook.cpp: @todo wrt reliablity.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-all/win/RpcChannelHook.cpp

    r71716 r71719  
    7676 * @todo Consider using RTONCE to serialize this (though it's likely unncessary
    7777 *       due to COM).
     78 *
     79 * @todo r=bird: Failure here must be fatal to VBoxProxyStub loading, or we can
     80 *               kiss the reliablity of VBoxSVC good bye!
    7881 */
    7982void SetupClientRpcChannelHook(void)
    8083{
    8184    // register single hook only
     85    /** @todo r=bird: This is called from DllMain/AttachProcess, so it should
     86     *        only happen once.  OTOH, do we need to do anything on detach? */
    8287    if (!CRpcChannelHook::IsChannelHookRegistered())
    8388    {
     
    170175            RTPROCESS pid = RTProcSelf();
    171176            hrc = ptrClientList->RegisterClient(pid);
    172             LogFunc(("Called VBoxSDS RegisterClient() : hr=%Rhrf\n", hrc));
     177            if (SUCCEEDED(hrc))
     178                LogFunc(("Called VBoxSDS RegisterClient() : hr=%Rhrf\n", hrc));
     179            else
     180                LogRel(("ERROR! Call to VBoxSDS::RegisterClient failed: hr=%Rhrf\n", hrc));
    173181        }
    174182        else
    175183        {
    176             LogFunc(("Error to connect to VBoxSDS: hr=%Rhrf\n", hrc));
     184            LogRel(("ERROR! Failed to connect to VBoxSDS: hr=%Rhrf\n", hrc));
    177185        }
     186        /** @todo r=bird: Failure of any of above calls shall result in
     187         * failure to get IVirtualBox!  Because the alternative is that VBoxSVC
     188         * will quit early on us and potentally mess up the VM.  Much better
     189         * to fail before its even started. */
    178190    }
    179191}
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