VirtualBox

Changeset 75727 in vbox


Ignore:
Timestamp:
Nov 26, 2018 8:39:43 AM (6 years ago)
Author:
vboxsync
Message:

VBoxServiceControlSession.cpp: Bail out in vgsvcGstCtrlSessionSpawnWorker() when we're unable to connect to the host service.

File:
1 edited

Legend:

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

    r75720 r75727  
    13361336    }
    13371337    else
    1338 /** @todo r=bird: This should return to caller, shouldn't it it?!?
    1339  * Because VbglR3GuestCtrlSessionNotify() below is now using an uninitialized
    1340  * uClientID, right?  If you check VbglR3GuestCtrlConnect, you can clearly see
    1341  * that it will not be set, except on success.  So, this is a terrible idea!
    1342  *
    1343  * Did this happen because of a weird desire to have a single return statement?
    1344  * Or was it some other confusion wrt program flow/state?  Indentation fright?
    1345  * Please figure out why and try not to do it again. :-)
    1346  */
     1338    {
    13471339        VGSvcError("Error connecting to guest control service, rc=%Rrc\n", rc);
     1340        return RTEXITCODE_FAILURE;
     1341    }
    13481342
    13491343    /* Report started status. */
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